Skip to content

Commit

Permalink
Added coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
szikszail committed Apr 17, 2016
1 parent 430c22b commit e83e3c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/coverage
.idea
*.log
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Library to parse date strings to date object.",
"main": "index.js",
"scripts": {
"test": "node ./node_modules/mocha/bin/mocha"
"test": "istanbul cover --include-all-sources ./node_modules/mocha/bin/_mocha --root ./lib -x ./test/*.js --report lcovonly -- -R spec && cat ./coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +25,8 @@
"homepage": "https://github.com/szikszail/date-x#readme",
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"istanbul": "^0.4.3",
"mocha": "^2.4.5"
}
}

0 comments on commit e83e3c2

Please sign in to comment.