Skip to content

Commit

Permalink
Added code coverage checking for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianba committed Nov 28, 2016
1 parent b9a6973 commit 047dd56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ test/testfiles/tmp.xml
# Test npm package file
appx-manifest-version-*.tgz

# JSDocs output
out
# Istanbul output
coverage

# npm debug
npm-debug.log
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ language: node_js

node_js:
- "stable"

after_success:
- "npm run coveralls"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"appx-version": "./cmd/commandLine.js"
},
"scripts": {
"test": "mocha"
"test": "istanbul cover node_modules/mocha/bin/_mocha",
"coveralls": "coveralls < coverage/lcov.info"
},
"repository": {
"type": "git",
Expand All @@ -29,7 +30,9 @@
"xml2js": "^0.4.17"
},
"devDependencies": {
"coveralls": "^2.11.15",
"fs-extra": "^1.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.2"
}
}

0 comments on commit 047dd56

Please sign in to comment.