Skip to content

Commit cb6d404

Browse files
author
Tom Kirkpatrick
committed
Add coveralls support
1 parent 707458d commit cb6d404

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

circle.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
machine:
22
node:
33
version: 4.2.2
4+
test:
5+
post:
6+
- npm run coverage

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ module.exports = function loopbackComponentAccess(app, options) {
2222
accessUtils.setupRoleResolvers();
2323
// Set up model opertion hooks
2424
accessUtils.setupModels();
25-
// TODO: Create Group Access model automatically if one hasn't been specified
25+
// TODO: Create Group Access model automatically if one hasn't been specified
2626
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
"simple-app":"node test/fixtures/simple-app/server/server.js",
3434
"esformatter": "esformatter -i './{lib,test}/**/*.js'",
3535
"pretest": "npm run esformatter ; npm run lint",
36+
"coverage": "cat ./coverage/lcov.info | coveralls",
3637
"quicktest": "mocha test/*test.js",
37-
"test": "babel-node ./node_modules/.bin/isparta cover --report text --report html _mocha test/*test.js",
38+
"test": "babel-node ./node_modules/.bin/isparta cover --report text --report lcov _mocha test/*test.js",
3839
"test:watch": "npm run test -- -w",
3940
"outdated": "npm outdated --depth=0",
4041
"todo": "./node_modules/.bin/leasot {lib,test}/*.js {lib,test}/**/*.js -r markdown > TODO.md || echo Refreshed TODO.md."

0 commit comments

Comments
 (0)