如何在代码更改后使angularjs e2e-test自动重新加载

时间:2013-01-11 21:24:42

标签: angularjs angularjs-e2e

当我运行e2e测试时,它会完成工作,但在测试成功时断开连接。有没有办法让它连续测试?

./scripts/e2e-test.sh 

Starting Testacular Server (http://vojtajina.github.com/testacular)
-------------------------------------------------------------------
info: Testacular server started at http://localhost:9876/
info (launcher): Starting browser Chrome
info (Chrome 24.0): Connected on socket id E1loZJU6dCI4eyW9ewyo
Chrome 24.0: Executed 3 of 3 SUCCESS (1.027 secs / 0.697 secs)
info: Disconnecting all browsers

1 个答案:

答案 0 :(得分:0)

在你的testacular / karma配置中,更改/添加

autoWatch = True 
singleRun = False

您可以通过打开./scripts/e2e-test.sh找到配置,并在其中显示testacular start或karma start,文件名应该在那里。我假设您正在使用角度种子或教程,在这种情况下,文件通常位于something.conf.js下的config文件夹中