Browse files

Add code coverage through coveralls

  • Loading branch information...
1 parent 40673af commit 6c5c0c1fa67c21056c6af1179d0cc7de42d1c30a @rafeca committed Feb 2, 2014
Showing with 9 additions and 3 deletions.
  1. +1 −1 .gitignore
  2. +1 −0 .travis.yml
  3. +7 −2 package.json
View
2 .gitignore
@@ -1,3 +1,3 @@
.DS_Store
node_modules/
-lib-cov/
+coverage/
View
1 .travis.yml
@@ -1,3 +1,4 @@
language: "node_js"
+after_success: "npm run coveralls"
node_js:
- "0.10"
View
9 package.json
@@ -18,7 +18,9 @@
"scripts": {
"test": "mocha --reporter spec",
"testwin": "node ./node_modules/mocha/bin/mocha --reporter spec",
- "jshint": "jshint lib/*.js"
+ "jshint": "jshint lib/*.js",
+ "coverage": "istanbul cover _mocha --report lcovonly -- -R spec",
+ "coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"bin": {
"prettyjson": "./bin/prettyjson"
@@ -33,6 +35,9 @@
"mocha": "1.8.1",
"should": "1.2.2",
"jshint": "~2.3.0",
- "getversion": "~0.1.1"
+ "getversion": "~0.1.1",
+ "istanbul": "~0.2.4",
+ "coveralls": "~2.7.0",
+ "mocha-lcov-reporter": "0.0.1"
}
}

0 comments on commit 6c5c0c1

Please sign in to comment.