Why does karma-runner try to open a browser? #937

Closed
elgs opened this Issue Mar 5, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@elgs

elgs commented Mar 5, 2014

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?

Thanks,
Elgs

@davidlinse

This comment has been minimized.

Show comment
Hide comment
@davidlinse

davidlinse Mar 5, 2014

because it's the purpose of karma-runner to run unit-tests in parallel in
multiple browsers!?

maybe you want to switch your test-runner..

my two cents..

regards
~david
On Mar 5, 2014 11:44 AM, "elgs" notifications@github.com wrote:

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?

Thanks,
Elgs


Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma/issues/937
.

because it's the purpose of karma-runner to run unit-tests in parallel in
multiple browsers!?

maybe you want to switch your test-runner..

my two cents..

regards
~david
On Mar 5, 2014 11:44 AM, "elgs" notifications@github.com wrote:

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?

Thanks,
Elgs


Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma/issues/937
.

@elgs

This comment has been minimized.

Show comment
Hide comment
@elgs

elgs Mar 5, 2014

@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.

Thanks,
Elgs

elgs commented Mar 5, 2014

@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.

Thanks,
Elgs

@elgs

This comment has been minimized.

Show comment
Hide comment
@elgs

elgs Mar 5, 2014

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.

elgs commented Mar 5, 2014

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.

@elgs elgs closed this Mar 5, 2014

@davidlinse

This comment has been minimized.

Show comment
Hide comment
@davidlinse

davidlinse Mar 5, 2014

you could try to use phantomjs as browser, which is headless an should
fit your needs..

~david
On Mar 5, 2014 1:28 PM, "elgs" notifications@github.com wrote:

Closed #937 #937.


Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma/issues/937
.

you could try to use phantomjs as browser, which is headless an should
fit your needs..

~david
On Mar 5, 2014 1:28 PM, "elgs" notifications@github.com wrote:

Closed #937 #937.


Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma/issues/937
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment