Skip to content

Commit

Permalink
Added Coverall.io test coverage report.
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-lau committed Dec 30, 2014
1 parent b5f4281 commit e373e61
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
lib/
node_modules/
*.swp
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
coverage/
docs/
lib/*.js.map
src/
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- "0.10"
services:
- mongodb
after_script:
- npm run coverage && cat coverage/lcov.info | node_modules/.bin/coveralls
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,20 @@
"node" : ">= 0.10.34"
},
"scripts" : {
"build" : "NODE_ENV=production node_modules/.bin/coffee --compile --map --output lib src",
"build" : "NODE_ENV=production node_modules/.bin/coffee --compile --map --output lib/ src/",
"prepublish" : "npm run build",
"pretest" : "npm run build",
"test" : "NODE_ENV=test node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter dot test/**/*.test.coffee"
"test" : "NODE_ENV=test node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter dot test/**/*.test.coffee",
"coverage" : "NODE_ENV=test node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --compilers coffee:coffee-script/register --reporter dot test/**/*.test.coffee"
},
"devDependencies" : {
"chai" : "^1.10.0",
"chai-as-promised" : "^4.1.1",
"coffee-script" : "^1.8.0",
"debug" : "^2.1.0",
"mocha" : "^2.0.1",
"mongoose" : "~3.8.21",
"q" : "^1.1.2"
"chai" : "^1.10.0",
"chai-as-promised" : "^4.1.1",
"coffee-script" : "^1.8.0",
"coveralls" : "^2.11.2",
"debug" : "^2.1.0",
"istanbul" : "duereg/istanbul",
"mocha" : "^2.0.1",
"mongoose" : "~3.8.21",
"q" : "^1.1.2"
}
}
2 changes: 1 addition & 1 deletion test/mongoose-trashable.test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Q = require('q')
Schema = mongoose.Schema
Query = mongoose.Query
should = chai.should()
mongooseTrashable = require('../')
mongooseTrashable = require('../src/mongoose-plugins-trashable')

chai.use(chaiAsPromised)

Expand Down

0 comments on commit e373e61

Please sign in to comment.