I'm running karma-running with Jasmine in Webstorm 7.0. Whenever I run the test, a browser is opened. Now if I close the browser, and try to run the tests again. An error message says something like this:
/usr/local/bin/node /Applications/WebStorm.app/plugins/js-karma/js_reporter/karma-intellij/lib/intellijRunner.js --karmaPackageDir=/usr/local/lib/node_modules/karma --serverPort=9876 --urlRoot=/
Testing started at 2:38 AM ...
No captured browser, open http://localhost:9876/
Process finished with exit code 0
I just want to test some nodejs functions. I don't think they have anything to do with a browser. Why does karma-runner bother to open a browser?
@davidlinse thanks. It's interesting I saw karma-runner in some older version of Webstorm didn't bring out any browser, maybe the karma-runner's version was also older. If you look at this link: https://egghead.io/lessons/unit-testing-introduction-to-karma , drag to about 1:15, and you will see what I meant.
What I need is really a simple test runner. I appreciate if you would recommend another test-runner for jasmine to me.
I tried jasmine-node just now. It seems to be exactly what I wanted. However, I still want to use karma-runner, as it has very good integration with Webstorm. I really cannot figure out why karma-runner has to launch a browser.