Karma自动断开连接(因为10000毫秒内没有消息)

时间:2016-12-22 06:24:29

标签: angularjs unit-testing jasmine tdd karma-runner

我是使用带有业力和茉莉的angularJs进行单元测试的新手。执行测试用例时遇到问题。

 I got 22 12 2016 11:48:25.207:WARN [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Disconnected (
1 times), because no message in 10000 ms.

我在google上搜索,然后在配置文件中添加browserNoActivityTimeout: 60000,。之后我收到以下错误:

Missing error handler on `socket`.
TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:695:5)
    at JenkinsReporter.specSuccess.specSkipped.specFailure (C:\Users\manpreet.ka
ur\Desktop\content\node_modules\karma-jenkins-reporter\index.js:97:31)
    at JenkinsReporter.BaseReporter.onSpecComplete (C:\Users\manpreet.kaur\Deskt
op\content\node_modules\karma\lib\reporters\base.js:78:12)
    at Server.<anonymous> (C:\Users\manpreet.kaur\Desktop\content\node_modules\k
arma\lib\events.js:13:22)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at Browser.onResult (C:\Users\manpreet.kaur\Desktop\content\node_modules\kar

这是nodejs和karma的版本:

node: v6.9.1
Karma version: 0.13.22

这些测试用例在其他系统中运行良好。我正在使用windows8。

0 个答案:

没有答案