chore(test): no coverage by default (#920)

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.
This commit is contained in:
Nate Fischer 2018-12-02 22:40:33 -08:00 committed by GitHub
parent e606706855
commit 5cab915f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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",