Skip to content

Commit

Permalink
Use babel-istanbul for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalduez committed Jul 15, 2015
1 parent adc261d commit 030bbd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ test/data/expected.stream.json: test/data/expected.json

cover: dist
rm -rf coverage
$(BIN)istanbul cover --report none --print detail $(BIN)_mocha test/**/*.test.js
$(BIN)babel-istanbul cover --report none --print detail $(BIN)_mocha test/**/*.test.js

cover-browse: dist
rm -rf coverage
$(BIN)istanbul cover --report html $(BIN)_mocha test/**/*.test.js
$(BIN)babel-istanbul cover --report html $(BIN)_mocha test/**/*.test.js
open coverage/index.html

travis: lint cover
$(BIN)istanbul report lcovonly
$(BIN)babel-istanbul report lcovonly
(cat coverage/lcov.info | coveralls) || exit 0
rm -rf coverage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@
"devDependencies": {
"babel": "5.6.*",
"babel-eslint": "^3.1.15",
"babel-istanbul": "^0.2.10",
"coveralls": "^2.11.2",
"dateformat": "^1.0.11",
"eslint": "^0.23.0",
"istanbul": "^0.3.13",
"jsesc": "^0.5.0",
"jshint": "^2.6.3",
"mocha": "^2.2.1",
Expand Down

0 comments on commit 030bbd5

Please sign in to comment.