0

我正在GAE/Python上測試AngularJS。我試着在幾個bootstrap模板文件中移動,並且在單元測試(默認單元測試)中沒有得到以下錯誤。在AppEngine Python項目中進行AngularJS/Karma單元測試

來源: https://github.com/m2mIO/angular-portal

Starting Karma Server (http://karma-runner.github.io) 
------------------------------------------------------------------- 
WARN [config]: "/" is proxied, you should probably change urlRoot to avoid conflicts 
WARN [plugin]: Cannot find plugin "karma-junit-reporter". 
    Did you forget to install it ? 
    npm install karma-junit-reporter --save-dev 
WARN [proxy]: proxy "http://localhost:8080" normalized to "http://localhost:8080/" 
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/ 
INFO [launcher]: Starting browser Chrome 
INFO [Chrome 30.0.1599 (Mac OS X 10.8.5)]: Connected on socket 4fu9UWsj1npbCkHr1G-4 
Chrome 30.0.1599 (Mac OS X 10.8.5) ERROR 
    Uncaught ReferenceError: jQuery is not defined 
    at /Users/kyleroche/PycharmProjects/2lemetry/app/js/fullcalendar.min.js:7 
Chrome 30.0.1599 (Mac OS X 10.8.5) ERROR 
    Uncaught ReferenceError: jQuery is not defined 
    at /Users/kyleroche/PycharmProjects/2lemetry/app/js/gcal.js:107 
Chrome 30.0.1599 (Mac OS X 10.8.5) ERROR 
    Uncaught ReferenceError: jQuery is not defined 
    at /Users/kyleroche/PycharmProjects/2lemetry/app/js/jquery-ui-1.10.2.custom.min.js:6 
Chrome 30.0.1599 (Mac OS X 10.8.5) ERROR 
    Uncaught ReferenceError: jQuery is not defined 
    at /Users/kyleroche/PycharmProjects/2lemetry/app/js/jquery.dataTables.js:39 
Chrome 30.0.1599 (Mac OS X 10.8.5) ERROR 
    Uncaught ReferenceError: jQuery is not defined 
    at /Users/kyleroche/PycharmProjects/2lemetry/app/js/jquery.flot.js:32 
Chrome 30.0.1599 (Mac OS X 10.8.5): Executed 0 of 0 ERROR (0.716 secs/0 secs) 

我也不太確定如何添加到我的app.yaml服務於端到端的測試。它們位於test/e2e/runner.html中。

回答

0

我明白了這一點。使用排除模板文件,並必須從靜態資產目錄服務器/測試。

相關問題