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.

Bug (command: new): --skip-tests doesn't skip e2e

See original GitHub issue

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

Angular CLI: 1.5.0
Node: 9.1.0
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

Running

ng new testapp --skip-tests

would still see the e2e files and config files of karma and protractor

The log given by the failure.

N/A

Desired functionality.

It shouldn’t include the test files like these, should it?

Mention any other details that might be useful.

N/A

Issue Analytics

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

github_iconTop GitHub Comments

8reactions
NoNameProvidedcommented, Jan 25, 2018

We would love to see also a skip-e2e option, as we are rolling our own. What was the reason removing the already existing implementation?

1reaction
Broccocommented, Nov 14, 2017

That’s a potential debate, but for what you’re looking for, consider using this:

ng new testapp --minimal

This will create a new app with no test structures (spec files or dependencies) and will also inline both styles and templates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I skip tests in maven install goal, while running them ...
This post explains how to skip integration tests, no matter what plugin ... Then add the skipTests property to the plugin section of...
Read more >
Skipping Tests In Angular CLI - Upmostly
When creating your new project, simply pass the –skip-tests flag and “theoretically” it should skip *ALL* tests right?
Read more >
Angular 9 Tutorial For Beginners #71- Skipping Tests in ...
Angular 9 Tutorial For Beginners #71 - Angular skipping tests in Testing Tutorial in Angular, angular skipping tests in testing, e2e testing ...
Read more >
368722 – m2e Skip Tests does not skip when maven-surefire ...
I am unable to reproduce the problem. Please attach complete standalone maven project that works on command line with "mvn clean package -Dmaven ......
Read more >
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 >

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