我可以运行单元和中途测试,但是当我想运行e2e测试时,没有任何反应。没有发现测试因缘的输出提示:作为跟随无法运行e2e与业力测试(对于角度)
C:\>karma start
INFO [karma]: Karma server started at http://localhost:9876/
INFO [launcher]: Starting browser IE
INFO [IE 10.0 (Windows)]: Connected on socket id 8lG9jAG8mloBmjFez5V9
IE 10.0 (Windows): Executed 0 of 0 SUCCESS (0.125 secs/0 secs)
我karma.conf文件:
files = [
JASMINE,
JASMINE_ADAPTER,
'Scripts/libs/jquery/jquery-*.js',
'Scripts/libs/angular/angular.js',
'Scripts/libs/angular/angular-mocks.js',
'Scripts/libs/angular/angular-resource.js',
'Scripts/libs/angular/angular-scenario.js',
'Scripts/sinon-1.7.3.js',
'app/**/index.js',
'app/**/*.js',
'app/*.js',
'test/unit/**/*.js',
'test/midway/**/*.js',
'test/e2e/*.js'
];
reporters = ['progress'];
port = 9876;
runnerPort = 9100;
colors = true;
logLevel = LOG_INFO;
autoWatch = true;
browsers = ['IE'];
captureTimeout = 60000;
singleRun = false;
proxies = {
'/': 'http://localhost:1506/portal.web'
};
任何想法有什么不对?
你有没有试过让你的e2e测试与测试跑步者一样工作:https://github.com/angular/angular-seed/blob/master/test/e2e/runner.html –
我放弃了。我无法找到关于如何为e2e测试设置业力的好教程。当我按照angular的网站上的教程(http://docs.angularjs.org/tutorial/step_03),有太多的假设,它根本没有帮助。浏览到http:// localhost:8000/test/e2e/runner.html只是失败,尽管我已经在karma.conf文件的proxies参数中指定了此端口。我已经添加了测试跑步者HTML文件,因为您告诉我,没有任何效果.... – Sam
测试跑步者不使用业力。只需在您的浏览器中将您的应用程序从相同的Web服务器上启动即可 –