Ember-cli: Trying to run `ember test --serve` and `ember test` simultaneously results in "EADDRINUSE" error

Created on 2 Sep 2015  路  5Comments  路  Source: ember-cli/ember-cli

Running either (or both) with --port #### (even if it is the same number for both) results in success, but prints a warning:

The option '--port' is not registered with the test command. Run ember test --help for a list of supported options.

Most helpful comment

@nickiaconis We no longer use --port to set the port number when running ember test --server. It was changed to --test-port.

ember test --server --test-port=12345 will work fine

Change was in https://github.com/ember-cli/ember-cli/pull/3239

All 5 comments

can you share versions of:

  • ember
  • npm
  • node
  • os

Of course.

  • ember(-cli): 1.13.8
  • node: 0.12.6
  • npm: 2.13.4
  • os: darwin x64 (OSX Yosemite)

(By the way, I think it's awesome that ember -v gives all of these in one shot.) :+1:

@nickiaconis We no longer use --port to set the port number when running ember test --server. It was changed to --test-port.

ember test --server --test-port=12345 will work fine

Change was in https://github.com/ember-cli/ember-cli/pull/3239

@patocallaghan Thanks for that tip. I'm still confused why ember test needs to bind a port in the first place, since it's only running in phantom.

I'm also confused as to why running ember test --port 1234 and ember test --serve --port 1234 simultaneously works, but running ember test and ember test --serve simultaneously does not.

@nickiaconis ember test uses testem under the hood and that would still need to use a port. If you add Chrome to your list of tested browsers you'll see it opens up with http://localhost:7357.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaermorchen picture kaermorchen  路  4Comments

MelSumner picture MelSumner  路  4Comments

sunliil picture sunliil  路  3Comments

alexdiliberto picture alexdiliberto  路  3Comments

tristanpemble picture tristanpemble  路  4Comments