Angular-cli: Add --skip-tests flag to ng init

Created on 30 Dec 2016  路  3Comments  路  Source: angular/angular-cli

It would be nice to have a --skip-tests flag in the ng new / init command.

I know it is a very bad practice to omit writing unit and e2e tests but it would be a useful flag for barbarians like me. :dancer:

I wanted to know your opinion about it before making a PR.

3 (nice to have)

Most helpful comment

If ng new myApp --skip-tests is run, should the angular-cli.json be updated to change the following:

    "spec": {
      "class": false, 
      "component": true, // change to false
      "directive": true, // change to false
      "module": false,
      "pipe": true, // change to false
      "service": true // change to false
    }

That way the --skip-tests flag will affect the whole project, not just the ng new/init command.

All 3 comments

If ng new myApp --skip-tests is run, should the angular-cli.json be updated to change the following:

    "spec": {
      "class": false, 
      "component": true, // change to false
      "directive": true, // change to false
      "module": false,
      "pipe": true, // change to false
      "service": true // change to false
    }

That way the --skip-tests flag will affect the whole project, not just the ng new/init command.

Closing as it has been implemented.

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