Skip to content

Commit 196ac4d

Browse files
authored
Merge pull request #131 from fh1ch/chore/nyc-test-coverage
Chore/nyc test coverage
2 parents ad9a08c + d4af9ad commit 196ac4d

File tree

4 files changed

+700
-297
lines changed

4 files changed

+700
-297
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: 11 additions & 11 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": {
@@ -39,19 +39,19 @@
3939
},
4040
"homepage": "https://github.com/fh1ch/node-bacstack#readme",
4141
"dependencies": {
42-
"debug": "^4.0.1",
42+
"debug": "^4.1.1",
4343
"iconv-lite": "^0.4.24"
4444
},
4545
"devDependencies": {
46-
"@commitlint/cli": "^7.1.2",
47-
"@commitlint/config-conventional": "^7.1.2",
48-
"@commitlint/travis-cli": "^7.1.2",
49-
"chai": "^4.1.2",
50-
"docdash": "^1.0.0",
51-
"istanbul": "^0.4.5",
46+
"@commitlint/cli": "^7.5.1",
47+
"@commitlint/config-conventional": "^7.5.0",
48+
"@commitlint/travis-cli": "^7.5.1",
49+
"chai": "^4.2.0",
50+
"docdash": "^1.0.2",
5251
"jscs": "^3.0.7",
5352
"jsdoc": "^3.5.5",
5453
"jshint": "^2.9.5",
55-
"mocha": "^5.0.5"
54+
"mocha": "^5.2.0",
55+
"nyc": "^13.2.0"
5656
}
5757
}

0 commit comments

Comments
 (0)