Angularjs e2e测试与测试断开所有浏览器的连接

Angularjs e2e测试与测试断开所有浏览器的连接,angularjs,karma-runner,Angularjs,Karma Runner,我正在尝试使用TestCular在我的AngularJs项目上进行e2e测试。我成功地启动了一个基于node.js的web服务器,我可以看到加载url时文件是如何发送的,甚至我可以在浏览器上看到查看结果,但测试测试不起作用。我得到这个错误: [2013-04-04 00:31:00.499] [WARN] config - "/" is proxied, you should probably change urlRoot to avoid conflicts INFO [testacular]

我正在尝试使用TestCular在我的AngularJs项目上进行e2e测试。我成功地启动了一个基于node.js的web服务器,我可以看到加载url时文件是如何发送的,甚至我可以在浏览器上看到查看结果,但测试测试不起作用。我得到这个错误:

[2013-04-04 00:31:00.499] [WARN] config - "/" is proxied, you should probably change urlRoot to avoid conflicts
INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [launcher]: Starting browser Firefox
INFO [Chrome 26.0 (Mac)]: Connected on socket id EN7sZuseiLuwlddbBkqn
INFO [Firefox 13.0 (Mac)]: Connected on socket id lBTUcn8b75p5O_cPBkqo
Chrome 26.0 (Mac): Executed 0 of 3
Chrome 26.0 (Mac): Executed 0 of 3 DISCONNECTED (0.413 secs / 0 secs)
Firefox 13.0 (Mac): Executed 0 of 3 DISCONNECTED (0.31 secs / 0 secs)
WARN [Chrome 26.0 (Mac)]: Disconnected
这是我的测试配置文件:

basePath = '../';

files = [
  ANGULAR_SCENARIO,
  ANGULAR_SCENARIO_ADAPTER,
  'test/e2e/**/*.js'
];

autoWatch = true;
browsers = ['Chrome', 'Firefox'];
singleRun = false;

proxies = {
  '/': 'http://localhost:8000/'
};

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

知道我在做什么吗?

我遇到了类似的问题。我使用的是index.html asynch flavor,结果是您还需要将
ngapp
放在
document.body

angular.bootstrap(document, ['app']);

document.body.className = document.body.className + ' ng-app';

参考资料:

我遇到了类似的问题。我使用的是index.html asynch flavor,结果是您还需要将
ngapp
放在
document.body

angular.bootstrap(document, ['app']);

document.body.className = document.body.className + ' ng-app';

参考资料:

我已经更新了我的系统,现在我使用karma runner而不是testacular,但是我仍然有相同的结果我已经更新了我的系统,现在我使用karma runner而不是testacular,但是我仍然有相同的结果