Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing config file to karma run #625

Closed
mvolkmann opened this issue Jul 5, 2013 · 2 comments
Closed

Allow passing config file to karma run #625

mvolkmann opened this issue Jul 5, 2013 · 2 comments

Comments

@mvolkmann
Copy link

I'm having a tough time getting this set up for the first time.
I generated karma.conf.js using "karma init".
port and runnerPort are both set to 3000.
When I run "karma run karma.conf.js I get "There is no server listening on port 9100".
I don't know where it is getting 9100. That must be a default that I am failing to override.

@dignifiedquire
Copy link
Member

I'm afraid currently it's not possible to read out the configuration, though it would be nice to have that. Try

$ karma run --runner-port 3000

@vojtajina
Copy link
Contributor

You can't set both ports to the same value. (We should get rid off the runnerPort and merge them, but that's not done yet).

As @dignifiedquire pointed out, when using non-default runnerPort + karma run, you need to pass it as an argument.

'karma run' should allow passing the config file and read the port from there, so I'm changing the title of this issue to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants