Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mzvonar committed Jul 12, 2017
1 parent 937009f commit d518e8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ install:
- npm install

script:
- npm test
- npm run cover

# Send coverage data to Coveralls
after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Get value from object by path. Undefined-safe and accepts default value",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*"
},
"repository": {
"type": "git",
Expand All @@ -24,7 +25,9 @@
},
"homepage": "https://github.com/mzvonar/getIn#readme",
"devDependencies": {
"coveralls": "2.13.1",
"expect": "1.20.2",
"istanbul": "0.4.5",
"mocha": "3.4.2"
}
}

0 comments on commit d518e8e

Please sign in to comment.