我有一个与Grunt和Karma的JavaScript项目。运行测试时,除Chrome中外,一切正常。我收到以下DISCONNECTED消息: (注意它停止的测试每次都不同)
Chrome 37.0.2062 (Windows 8): Executed 898 of 3031 SUCCESS (0 secs / 0.448 secs)
Chrome 37.0.2062 (Windows 8): Executed 898 of 3031 DISCONNECTED (2.419 secs / 0.448 secs)
Warning: Task "karma:chrome" failed. Use --force to continue.
Chrome 37.0.2062 (Windows 8): Executed 924 of 3031 SUCCESS (0 secs / 0.427 secs)
Chrome 37.0.2062 (Windows 8): Executed 924 of 3031 DISCONNECTED (2.424 secs / 0.427 secs)
Warning: Task "karma:chrome" failed. Use --force to continue.
我尝试将browserNoActivityTimeout值设置为30000,60000,9000000和12000000,但没效果。
我的测试是用Jasmine编写的。使用karma-jasmine来运行测试。我也使用jasmine-jquery来测试DOM。