Permalink
Browse files

Added coveralls.io

  • Loading branch information...
1 parent efcf3cd commit e6e9906d19ad51976d6670c070605ddc336ac2b8 @weblogixx weblogixx committed Aug 23, 2016
Showing with 6 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −0 .travis.yml
  3. +4 −1 package.json
View
@@ -14,3 +14,4 @@ node_modules/
npm-debug.log
.idea/
test/temp-test
+coverage/
View
@@ -6,3 +6,4 @@ node_js:
before_install:
- currentfolder=${PWD##*/}
- if [ "$currentfolder" != 'generator-react-webpack' ]; then cd .. && eval "mv $currentfolder generator-react-webpack" && cd generator-react-webpack; fi
+after_success: 'npm run coverage'
View
@@ -39,8 +39,9 @@
"url": "https://github.com/react-webpack-generators/generator-react-webpack.git"
},
"scripts": {
- "test": "mocha",
+ "test": "istanbul cover --report html _mocha",
"test:watch": "mocha -w",
+ "coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"release:major": "npm version prerelease && git push --follow-tags && npm publish --tag beta",
"release:minor": "npm version prerelease && git push --follow-tags && npm publish --tag beta",
"release:patch": "npm version prerelease && git push --follow-tags && npm publish --tag beta"
@@ -56,6 +57,8 @@
},
"devDependencies": {
"chai": "^3.2.0",
+ "coveralls": "^2.11.12",
+ "istanbul": "^0.4.5",
"mocha": "^3.0.0",
"yeoman-assert": "^2.1.1",
"yeoman-test": "^1.0.0"

0 comments on commit e6e9906

Please sign in to comment.