Permalink
Browse files

build: use nyc for coverage

  • Loading branch information...
dougwilson committed Jul 23, 2017
1 parent 8311a45 commit d0aa68173111528428830e8fc1d2b09b42c2be47
Showing with 5 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 .travis.yml
  3. +3 −3 package.json
View
@@ -1,3 +1,4 @@
.nyc_output/
coverage/
node_modules/
npm-debug.log
View
@@ -21,4 +21,4 @@ before_install:
script:
- "npm run-script test-travis"
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"
View
@@ -23,8 +23,8 @@
"utils-merge": "1.0.0"
},
"devDependencies": {
"istanbul": "0.4.5",
"mocha": "3.4.2",
"nyc": "10.3.2",
"supertest": "2.0.0"
},
"license": "MIT",
@@ -39,7 +39,7 @@
},
"scripts": {
"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-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/"
"test-cov": "nyc --reporter=text npm test",
"test-travis": "nyc --reporter=html --reporter=text npm test"
}
}

0 comments on commit d0aa681

Please sign in to comment.