Skip to content

Commit

Permalink
Switch to nyc for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
astorije committed Nov 25, 2017
1 parent cd43a3e commit 7a9dd51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pids
lib-cov

# Coverage directory used by tools like istanbul
.nyc_output/
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
Expand Down
6 changes: 6 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporter": [
"lcov",
"text-summary"
]
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
"check-style": "jscs chai-immutable.js test/test.js",
"test": "npm run test-mocha; npm run test-phantomjs; npm run test-readme; npm run check-style",
"test-readme": "mocha --compilers md:fulky/mocha-md-compiler README.md",
"test-mocha": "mocha",
"test-mocha": "nyc mocha",
"test-phantomjs": "mocha-phantomjs test/index.html",
"coverage": "istanbul cover _mocha",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls"
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,9 +46,9 @@
"coveralls": "^2.11.9",
"fulky": "^0.1.0",
"immutable": "^3.7.5",
"istanbul": "^0.4.3",
"jscs": "^2.5.0",
"mocha": "^2.4.5",
"mocha-phantomjs": "^4.1.0"
"mocha-phantomjs": "^4.1.0",
"nyc": "^11.3.0"
}
}

0 comments on commit 7a9dd51

Please sign in to comment.