Skip to content

ng test options not registered #966

@gotschmarcel

Description

@gotschmarcel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussiontype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions