Skip to content

The --skip-test option still generates test artifacts #6054

@agoncal

Description

@agoncal

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: local (v1.0.0, branch: master)
node: 7.9.0
os: darwin x64

Repro steps.

ng new myproj --skip-tests --skip-e2e

Desired functionality.

Using the --skip-tests option, I expect not to find any test artifacts at all in the project. But when I create a new project, I still have the following :

tsconfig.spec.json and karma.conf.js files

In the .angular-cli.json file still appears :

  "testTsconfig": "tsconfig.spec.json",
  "lint": [
    {
      "project": "src/tsconfig.spec.json"
    },
  ],

In the package.json file we still have :

  "scripts": {
    "test": "ng test",
  },
  "devDependencies": {
    "@types/jasmine": "2.5.38",
    "jasmine-core": "~2.5.2",
    "jasmine-spec-reporter": "~3.2.0",
    "karma": "~1.4.1",
    "karma-chrome-launcher": "~2.0.0",
    "karma-cli": "~1.0.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "karma-coverage-istanbul-reporter": "^0.2.0",
  }

The readme still mentions :

Running unit tests

Run ng test to execute the unit tests via Karma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions