Skip to content

Commit

Permalink
add test coverage reporting with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
koskimas committed Jun 12, 2015
1 parent e969f84 commit a527fdd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.idea
test-coverage
*.iml
*.DS_Store
2 changes: 2 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reporting:
dir: ./test-coverage
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ before_script:
- psql -c 'create database moron_test;' -U postgres
- mysql -e 'create database moron_test;'

after_script:
- npm run-script coveralls

notifications:
email: false
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "moron.js",
"license": "MIT",
"scripts": {
"test": "mocha --slow 10 --timeout 5000 --reporter spec --recursive tests"
"test": "istanbul --config=.istanbul.yml cover _mocha -- --slow 10 --timeout 5000 --reporter spec --recursive tests",
"coveralls": "cat ./test-coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"author": {
"name": "Sami Koskimäki",
Expand Down Expand Up @@ -33,10 +34,12 @@
"tv4-formats": "^1.0.0"
},
"devDependencies": {
"coveralls": "^2.11.2",
"expect.js": "^0.3.1",
"grunt": "^0.4.5",
"grunt-jsdoc": "^0.6.7",
"ink-docstrap": "^0.4.12",
"istanbul": "^0.3.15",
"mocha": "^2.2.4",
"sqlite3": "^3.0.8"
}
Expand Down

0 comments on commit a527fdd

Please sign in to comment.