我創建使用約曼Angular-Fullstack生成一個Web應用程序的工作。一切都從命令行正確運行。我可以使用grunt來啓動服務並運行測試。Webstorm噶測試運行不帶約曼角fullstack
我要運行的Webstorm用戶界面內噶單元測試。我右鍵點擊karma.conf.js
並有Webstorm創建噶運行配置我。當我嘗試運行該配置時,它會旋轉幾秒鐘然後失敗。在Webstorm
卡瑪服務器窗口包含此:
/usr/local/bin/node /Applications/WebStorm.app/Contents/plugins/js-karma/js_reporter/karma-intellij/lib/intellijServer.js --karmaPackageDir=/Users/williammcneill/Documents/Work/LearnNode/gecko/node_modules/karma --configFile=/Users/williammcneill/Documents/Work/LearnNode/gecko/karma.conf.js
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/bower_components/angular-route/angular-route.js" does not match any file.
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/app/app.coffee" does not match any file.
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/components/**/*.coffee" does not match any file.
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/components/**/*.jade" does not match any file.
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/app/**/*.coffee" does not match any file.
WARN [watcher]: Pattern "/Users/williammcneill/Documents/Work/LearnNode/gecko/client/app/**/*.jade" does not match any file.
INFO [karma]: Karma v0.12.37 server started at http://localhost:8080/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Mac OS X 0.0.0)]: Connected on socket 29_J57vgWL6mWwyV13tv with id 98142631
這一切看起來正確的給我。測試運行窗口包含此:
/usr/local/bin/node /Applications/WebStorm.app/Contents/plugins/js-karma/js_reporter/karma-intellij/lib/intellijRunner.js --karmaPackageDir=/Users/williammcneill/Documents/Work/LearnNode/gecko/node_modules/karma --serverPort=8080 --urlRoot=/
/Applications/WebStorm.app/Contents/plugins/js-karma/js_reporter/karma-intellij/lib/intellijRunner.js:54
throw e;
^
Error: connect ETIMEDOUT 127.0.0.1:8080
at Object.exports._errnoException (util.js:837:11)
at exports._exceptionWithHostPort (util.js:860:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1060:14)
Process finished with exit code 1
我無法弄清楚什麼是超時。如果我打開http://localhost:8080我看到一個網頁看起來像這樣。
其中也相貌端正給我。
我還沒有實際編寫任何代碼。我正在採取Yeoman和Webstorm給我的所有默認設置。我想我有所有相關Webstorm插件(AngularJs,噶瑪)。
有沒有人有洞察到可能發生什麼或我如何調試它?
Webstorm 10.0.4,約曼1.4.8,噶0.13.9,節點4.1.0,Mac OS X 10.10.5