Skip to content

Commit d4af9ad

Browse files
committed
chore(nyc): switch from istanbul to nyc for coverage reporting
Closes #129
1 parent 5983acf commit d4af9ad

File tree

4 files changed

+585
-132
lines changed

4 files changed

+585
-132
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
npm-debug.log
33
reports/
44
docs/
5+
.nyc_output/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- "commitlint-travis"
1515
- "npm run lint"
1616
- "npm run test"
17-
- "cat ./reports/coverage/lcov.info | ./node_modules/.bin/coveralls"
17+
- "cat ./reports/coverage-test/lcov.info | ./node_modules/.bin/coveralls"
1818
- "npm run integration"
1919
- "npm run docs"
2020
- stage: compliance

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"changelog": "commitlint --from=master",
88
"lint": "jshint lib/ test/ index.js && jscs lib/ test/ index.js",
9-
"test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha -- test/unit/*.spec.js",
10-
"integration": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha -- test/integration/*.spec.js",
11-
"compliance": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha -- test/compliance/*.spec.js",
9+
"test": "nyc --reporter=lcov --reporter=text-summary --report-dir reports/coverage-test mocha test/unit/*.spec.js",
10+
"integration": "nyc --reporter=lcov --reporter=text-summary --report-dir reports/coverage-integration mocha test/integration/*.spec.js",
11+
"compliance": "nyc --reporter=lcov --reporter=text-summary --report-dir reports/coverage-compliance mocha test/compliance/*.spec.js",
1212
"docs": "jsdoc -d ./docs -t node_modules/docdash ./lib ./index.js ./README.md"
1313
},
1414
"repository": {
@@ -48,10 +48,10 @@
4848
"@commitlint/travis-cli": "^7.5.1",
4949
"chai": "^4.2.0",
5050
"docdash": "^1.0.2",
51-
"istanbul": "^0.4.5",
5251
"jscs": "^3.0.7",
5352
"jsdoc": "^3.5.5",
5453
"jshint": "^2.9.5",
55-
"mocha": "^5.2.0"
54+
"mocha": "^5.2.0",
55+
"nyc": "^13.2.0"
5656
}
5757
}

0 commit comments

Comments
 (0)