Angular-cli: de las opciones de prueba no registradas

Creado en 31 may. 2016  ·  3Comentarios  ·  Fuente: angular/angular-cli

Estoy usando Mac OS X El Capitan con:

  • angular-cli: 1.0.0-beta.5
  • nodo: 6.2.0
  • sistema operativo: darwin x64

Algunas opciones de ng test parecen no funcionar, por ejemplo, ng test --filter x impresiones:

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

Aunque se imprime cuando se ejecuta 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.

Los alias tampoco funcionan. No ha probado todas las opciones, pero al menos module , filter , path y launch no funcionaron.

3 (nice to have) bufix

Comentario más útil

La opción '--proxy-config' no está registrada con el comando de prueba.
¿Hay alguna otra forma de habilitar el proxy durante la prueba?
Gracias

Todos 3 comentarios

La opción --filter era un vestigio del ember cli. Se ha abordado la fuga de opciones de ember en los comandos de cli angular. Cerrando este tema.

La opción '--proxy-config' no está registrada con el comando de prueba.
¿Hay alguna otra forma de habilitar el proxy durante la prueba?
Gracias

Este problema se ha bloqueado automáticamente debido a la inactividad.
Por favor, presente un nuevo problema si se encuentra con un problema similar o relacionado.

Obtenga más información sobre nuestra política de bloqueo automático de conversaciones .

_Esta acción ha sido realizada automáticamente por un bot._

¿Fue útil esta página
0 / 5 - 0 calificaciones

Temas relacionados

brtnshrdr picture brtnshrdr  ·  3Comentarios

naveedahmed1 picture naveedahmed1  ·  3Comentarios

JanStureNielsen picture JanStureNielsen  ·  3Comentarios

rajjejosefsson picture rajjejosefsson  ·  3Comentarios

rwillmer picture rwillmer  ·  3Comentarios