Skip to content

Commit

Permalink
add istanbul and coverall integration
Browse files Browse the repository at this point in the history
  • Loading branch information
cambi committed Dec 19, 2017
1 parent 23c46b2 commit 9cb314a
Show file tree
Hide file tree
Showing 3 changed files with 622 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: node_js

node_js:
- stable

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"
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Convert number to string with locale separator",
"main": "index.js",
"scripts": {
"test": "mocha --reporter spec"
"test": "node_modules/.bin/mocha --reporter spec",
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*"
},
"repository": {
"type": "git",
Expand All @@ -25,6 +26,9 @@
},
"devDependencies": {
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"istanbul": "^0.4.5",
"mocha": "^4.0.1"
}
},
"dependencies": {}
}

0 comments on commit 9cb314a

Please sign in to comment.