mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-25 16:07:37 +00:00
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:
parent
e606706855
commit
5cab915f70
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user