question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ng new` does not allow creation without any testing

See original GitHub issue

Maybe I don’t want or need tons and tons of unnecessary testing frameworks like Protractor, Karma, Jasmine, etc.

What do you think of an option to skip these? There’s only an option to omit spec files at the moment, but a flag to skip all testing would be great for, for example, developers who want to use different testing frameworks, or (like me) no testing frameworks. (I prefer to do the testing by hand)

Right now, my solution is:

rm -rf e2e/ src/karma.conf.js src/*.spec.* tslint.json src/tslint.json .editorconfig src/test.ts
npm un --save-dev protractor karma karma-chrome-launcher karma-coverage-istanbul-reporter karma-jasmine karma-jasmine-html-reporter jasmine-core jasmine-spec-reporter @types/jasmine @types/jasminewd2 tslint codelyzer

It would be nice not to have these files generated in the first place and added to package.json.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexeaglecommented, Aug 15, 2018

Automated testing of some sort is pretty integral to the Angular ecosystem. You’re free to do as you like of course, but I suspect we wouldn’t add this option since we want to keep most users on the recommended path. After you delete the files, are you done? Or does the CLI keep re-adding them?

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng new - Angular
Option Description Value Type Default Value ‑‑commit Initial git repository commit information. boolean true ‑‑directory The directory name to create the workspace in. string ‑‑force Force...
Read more >
ng new my-project --skip-tests shouldn't generate karma ...
In CLI v7.0.4 the --minimal flag is already working as expected. No generated test files. It removes the test files, but also removes ......
Read more >
What does --minimal do in angular-cli `ng new`?
It means Create a barebones project without any testing frameworks . You can check angular cli version 7 document for the list of...
Read more >
ng new - Angular
Creates and initializes a new Angular app that is the default project for a new workspace ... When true, creates a workspace without...
Read more >
ng generate component using the CLI - Pluralsight
ng generate component is a simple one-line command which creates different files and a folder, and it references the newly created component ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found