Skip to content

Commit

Permalink
fix(coverage): Fix coverage report scripts
Browse files Browse the repository at this point in the history
It's tricky to configure istanbul to get coverage from es2015 code. However the nyc wrapper seems to
work fine without much configuration effort.
  • Loading branch information
jcollado committed Feb 2, 2016
1 parent f8ea7e2 commit 5c60b33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules

# test coverage report files
coverage
.nyc_output

# vim swap files
*.swp
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"main": "dist/index.js",
"scripts": {
"build": "babel -d dist src",
"cover": "istanbul cover _mocha -- test.js",
"coveralls": "istanbul cover --report lcovonly _mocha -- test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
"cover": "nyc npm test",
"coveralls": "npm run cover && npm run report:text | coveralls",
"lint": "standard",
"premultitest": "npm run lint",
"multitest": "multitest",
"prepublish": "npm run build",
"pretest": "npm run lint",
"report:html": "nyc report --reporter=html",
"report:text": "nyc report --reporter=text-lcov",
"test": "mocha --compilers js:babel-register test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post && git fetch --tags && pr-tagger --log-level debug --access-token ${GH_TOKEN}"
},
Expand All @@ -37,9 +39,9 @@
"coveralls": "2.11.6",
"cz-conventional-changelog": "^1.1.5",
"ghooks": "1.0.3",
"istanbul": "0.4.2",
"mocha": "2.4.5",
"multitest": "0.3.2",
"nyc": "5.5.0",
"pr-tagger": "0.7.1",
"semantic-release": "^4.3.5",
"sinon": "1.17.3",
Expand Down

0 comments on commit 5c60b33

Please sign in to comment.