Skip to content

Commit

Permalink
build: use nyc for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 23, 2017
1 parent 8311a45 commit d0aa681
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.nyc_output/
coverage/ coverage/
node_modules/ node_modules/
npm-debug.log npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -21,4 +21,4 @@ before_install:
script: script:
- "npm run-script test-travis" - "npm run-script test-travis"
after_script: after_script:
- "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls" - "test -d .nyc_output && npm install coveralls@2 && nyc report --reporter=text-lcov | coveralls"
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -23,8 +23,8 @@
"utils-merge": "1.0.0" "utils-merge": "1.0.0"
}, },
"devDependencies": { "devDependencies": {
"istanbul": "0.4.5",
"mocha": "3.4.2", "mocha": "3.4.2",
"nyc": "10.3.2",
"supertest": "2.0.0" "supertest": "2.0.0"
}, },
"license": "MIT", "license": "MIT",
Expand All @@ -39,7 +39,7 @@
}, },
"scripts": { "scripts": {
"test": "mocha --require test/support/env --reporter spec --bail --check-leaks test/", "test": "mocha --require test/support/env --reporter spec --bail --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/", "test-cov": "nyc --reporter=text npm test",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/" "test-travis": "nyc --reporter=html --reporter=text npm test"
} }
} }

0 comments on commit d0aa681

Please sign in to comment.