Skip to content

Commit 310b6b8

Browse files
committed
fix: codeclimate reporting and code coverage
1 parent 4a3bc64 commit 310b6b8

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.DS_Store
22
npm-debug.log
33
node_modules
4-
test/lcov.info
5-
test/coverage.html
4+
coverage*

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ node_js:
77
script: npm test
88

99
after_script:
10+
- npm install -g codeclimate-test-reporter
1011
- npm run coverage
11-
- npm run codeclimate
12+
- codeclimate < coverage/lcov.info

package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,7 @@
99
},
1010
"scripts": {
1111
"test": "standard && mocha --reporter spec",
12-
"coverage": "mocha -r blanket -R mocha-lcov-reporter > test/lcov.info",
13-
"html-cov": "mocha -r blanket -R html-cov > test/coverage.html",
14-
"codeclimate": "codeclimate < test/lcov.info"
15-
},
16-
"config": {
17-
"blanket": {
18-
"pattern": "src"
19-
}
12+
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha"
2013
},
2114
"standard": {
2215
"ignore": [
@@ -33,11 +26,9 @@
3326
},
3427
"homepage": "https://github.com/ahmadnassri/httpsnippet",
3528
"devDependencies": {
36-
"blanket": "^1.1.6",
37-
"codeclimate-test-reporter": "0.0.4",
3829
"glob": "^5.0.1",
30+
"istanbul": "^0.3.7",
3931
"mocha": "^2.1.0",
40-
"mocha-lcov-reporter": "0.0.2",
4132
"should": "^5.0.1"
4233
},
4334
"dependencies": {

0 commit comments

Comments
 (0)