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

ng test options not registered #966

Closed
gotschmarcel opened this issue May 31, 2016 · 3 comments
Closed

ng test options not registered #966

gotschmarcel opened this issue May 31, 2016 · 3 comments
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion type: bug/fix

Comments

@gotschmarcel
Copy link

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.

@filipesilva filipesilva added the P5 The team acknowledges the request but does not plan to address it, it remains open for discussion label Jun 4, 2016
@Brocco
Copy link
Contributor

Brocco commented Jan 22, 2017

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.

@Brocco Brocco closed this as completed Jan 22, 2017
@mansura-habiba
Copy link

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants