2016-08-23 47 views
0

我正在運行正在通過的茉莉花測試,但直到最終超時沒有任何反應。我錯過了什麼?Circleci測試通過,但然後坐在那裏,直到超時

PhantomJS 2.1.1 (Linux 0.0.0): Executed 49 of 61 SUCCESS (0 secs/0.539 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 50 of 61 SUCCESS (0 secs/0.542 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 51 of 61 SUCCESS (0 secs/0.546 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 52 of 61 SUCCESS (0 secs/0.549 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 53 of 61 SUCCESS (0 secs/0.553 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 54 of 61 SUCCESS (0 secs/0.562 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 55 of 61 SUCCESS (0 secs/0.567 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 56 of 61 SUCCESS (0 secs/0.573 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 57 of 61 SUCCESS (0 secs/0.575 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 58 of 61 SUCCESS (0 secs/0.583 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 59 of 61 SUCCESS (0 secs/0.588 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 60 of 61 SUCCESS (0 secs/0.593 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 61 of 61 SUCCESS (0 secs/0.621 secs) 
PhantomJS 2.1.1 (Linux 0.0.0): Executed 61 of 61 SUCCESS (0.446 secs/0.621 secs) 

command ((npm :test)) took more than 10 minutes since last output 
+0

你找到一個解決問題了嗎?我有類似的問題。 – andrew

回答

1

支持解決該問題:

node_modules /人緣/斌/因緣開始--log級=調試--single運行 運行單程運行導致phantomJS乾淨關閉。這顯然是Karma特殊的「持續集成」模式。 http://karma-runner.github.io/1.0/config/configuration-file.html

所以,你應該做的就是添加

singleRun:真的,你karma.conf.js文件。

0
// Continuous Integration mode 
// if true, Karma captures browsers, runs the tests and exits 
singleRun: true, 

設置singleRun到真正在你的業力配置文件。這將返回1或0,具體取決於測試是否通過或失敗,而不是觀察spec文件中的無限變化。

0

運行測試的默認值是在karma.config中處於監視模式。

如果你想運行在一個單一的經營方式納克測試,請執行以下命令:

ng test --watch false

相關問題