Skip to content

Commit 2c0a32e

Browse files
committed
config coveralls
1 parent a48d317 commit 2c0a32e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ node_js:
44
before_install:
55
- npm i -g npm@5.6.0
66
script:
7-
- npm run test
7+
- npm run test-coverage
88
after_script:
99
- npm run coverage

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Randomly select elements in a collection.",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "nyc --reporter=text-lcov mocha",
7+
"test": "nyc --reporter=html mocha",
8+
"test-coverage": "nyc report --reporter=text-lcov mocha",
89
"coverage": "nyc report --reporter=text-lcov mocha | coveralls",
910
"start": "node src/demo.js",
1011
"istanbul": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"

0 commit comments

Comments
 (0)