Skip to content

Commit d7886b1

Browse files
committed
Add test-coverage report
1 parent 44070e1 commit d7886b1

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/*.log
33
.idea/
44
*.iml
5+
6+
coverage/

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_js:
33
- iojs
44
- 0.12
55
- 0.10
6+
#after_success: cat coverage/lcov.info | node_modules/.bin/coveralls --verbose

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,19 @@
1010
"rcloader": "^0.1.4"
1111
},
1212
"devDependencies": {
13+
"coveralls": "^2.11.2",
14+
"istanbul": "^0.3.13",
1315
"jscs": "^1.12.0",
1416
"jshint": "^2.6.3",
15-
"mocha": "^2.2.1",
17+
"mocha": "^2.2.4",
18+
"rimraf": "^2.3.2",
1619
"should": "^5.2.0"
1720
},
1821
"scripts": {
22+
"clean": "rimraf coverage/",
1923
"lint": "jscs index.js test/ & jshint index.js test/",
20-
"pretest": "npm run-script lint",
21-
"test": "mocha"
24+
"pretest": "npm run clean && npm run lint",
25+
"test": "istanbul cover _mocha"
2226
},
2327
"repository": {
2428
"type": "git",

0 commit comments

Comments
 (0)