Angular-cli: ng test options not registered

Created on 31 May 2016  路  3Comments  路  Source: angular/angular-cli

I'm using Mac OS X El Capitan with:

  • angular-cli: 1.0.0-beta.5
  • node: 6.2.0
  • os: darwin x64

Some options of ng test seem not to work, e.g. ng test --filter x prints:

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

Even though it is printed when running ng test --help:

(node:2838) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
Requested ember-cli commands:

ng test <options...>
  Runs your app's test suite.
  aliases: t
  --environment (String) (Default: test)
    aliases: -e <value>
  --config-file (String)
    aliases: -c <value>, -cf <value>
  --server (Boolean) (Default: false)
    aliases: -s
  --host (String)
    aliases: -H <value>
  --test-port (Number) (Default: 7357) The test port to use when running with --server.
    aliases: -tp <value>
  --filter (String) A string to filter tests to run
    aliases: -f <value>
  --module (String) The name of a test module to run
    aliases: -m <value>
  --watcher (String) (Default: events)
    aliases: -w <value>
  --launch (String) (Default: false) A comma separated list of browsers to launch for tests.
  --reporter (String) Test reporter to use [tap|dot|xunit] (default: tap)
    aliases: -r <value>
  --silent (Boolean) (Default: false) Suppress any output except for the test report
  --test-page (String) Test page to invoke
  --path (Path) Reuse an existing build at given path.
  --query (String) A query string to append to the test page URL.

The aliases also don't work. It haven't tested all options, but at least module, filter, path and launch didn't work.

3 (nice to have) bufix

Most helpful comment

The option '--proxy-config' is not registered with the test command.
Is there any other way to enable proxy while testing
Thanks

All 3 comments

The --filter option was a holdover from the ember cli. The leak of ember options into angular cli commands has been addressed. Closing this issue.

The option '--proxy-config' is not registered with the test command.
Is there any other way to enable proxy while testing
Thanks

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NCC1701M picture NCC1701M  路  3Comments

NilsHolger picture NilsHolger  路  3Comments

hartjo picture hartjo  路  3Comments

jmurphzyo picture jmurphzyo  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments