2013-10-23 114 views
1

在瀏覽器一切正常:localhost:8002/test/e2e/runner.html噶角E2E CLI測試腳本無法運行(同時測試並從瀏覽器中運行)

而在CLI ./scripts/e2e-test.sh它失敗:

的配置:

module.exports = function(config){ 
    config.set({ 


    basePath : '../', 

    files : [ 
     'test/e2e/**/*.js' 
    ], 

    autoWatch : false, 

    browsers : ['Chrome'], 

    frameworks: ['ng-scenario'], 

    singleRun : true, 

    proxies : { 
     '/': 'http://localhost:8002/#' //added the hash as a test.. didn't help 
    }, 

    plugins : [ 
      'karma-junit-reporter', 
      'karma-chrome-launcher', 
      'karma-firefox-launcher', 
      'karma-jasmine', 
      'karma-ng-scenario'  
      ], 

    junitReporter : { 
     outputFile: 'test_out/e2e.xml', 
     suite: 'e2e' 
    } 

})} 

測試行書:

#!/bin/bash 

BASE_DIR=`dirname $0` 

echo "" 
echo "Starting Karma Server (http://karma-runner.github.io)" 
echo "-------------------------------------------------------------------" 

karma start $BASE_DIR/../config/karma-e2e.conf.js $* 

失敗消息:

WARN [config]: "/" is proxied, you should probably change urlRoot to avoid conflicts 
WARN [proxy]: proxy "http://localhost:8002/#" normalized to "http://localhost:8002/#/" 
INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/ 
INFO [launcher]: Starting browser Chrome 
INFO [Chrome 30.0.1599 (Linux)]: Connected on socket qt_XZkiY6ZC2o-f86Ln- 
WARN [proxy]: failed to proxy /app/index.html ([object Object]) 

使用Ubuntu 13(是的,我改變了網絡server.js腳本默認端口8002) 我會很高興的幫助或方向..

回答

2

的發佈竟然是沿着測試跑步者運行`./scripts/webserver的需要..當我想到的時候非常明顯。另外我有一些記憶,早期版本的角度並不需要。 Nevermind

相關問題