Skip to content

Commit

Permalink
chore(test): no coverage by default (#920)
Browse files Browse the repository at this point in the history
NYC takes forever on my local machine, and I generally prefer to look at
coverage reports on the website anyway.

This changes `npm test` to run without coverage, and changes our CI to
run `npm run test-with-coverage` instead.
  • Loading branch information
nfischer committed Dec 3, 2018
1 parent e606706 commit 5cab915
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,7 @@ os:
- linux
- osx
script:
- npm test
- npm run test-with-coverage
# make sure when the docs are generated nothing changes (a.k.a. the docs have already been generated)
- npm run gendocs
- npm run check-node-support
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -22,7 +22,7 @@ matrix:
build: off

test_script:
- npm test
- npm run test-with-coverage

on_success:
- npm run codecov -- -f coverage/lcov.info
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -35,8 +35,8 @@
"scripts": {
"check-node-support": "node scripts/check-node-support",
"posttest": "npm run lint",
"test": "nyc --reporter=text --reporter=lcov ava test/*.js",
"test-no-coverage": "ava test/*.js",
"test": "ava test/*.js",
"test-with-coverage": "nyc --reporter=text --reporter=lcov ava test/*.js",
"gendocs": "node scripts/generate-docs",
"lint": "eslint .",
"after-travis": "travis-check-changes",
Expand Down

0 comments on commit 5cab915

Please sign in to comment.