Skip to content

Commit 53e6b64

Browse files
committed
coveralls integration for code coverage
1 parent bce4bf8 commit 53e6b64

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.coveralls.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-ci
2+
repo_token: QI5sf7T1RA9tZ16fRLYzoGQ6vKKMOhu9Y

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ node_js:
66
before script:
77
- npm install -g gulp
88
script:
9-
- gulp build:src
9+
- gulp build:src
10+
- npm run coveralls

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,5 @@ same as SimpleSelect but use `this.refs.multiSelectInstance.values()` to get the
161161
* `npm install`
162162
* `gulp`
163163
* visit `localhost:8000`
164-
* `npm test` , `npm run-script coverage` for unit tests & coverage
164+
* `npm test` , `npm run coverage` for unit tests & coverage
165165
* for production build/test run `MINIFY=true gulp`

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "src/index.js",
66
"scripts": {
77
"test": "mocha test/index.ls --compilers ls:livescript",
8-
"coverage": "istanbul cover _mocha -- test/index.ls --require should --compilers ls:livescript"
8+
"coverage": "istanbul cover _mocha -- test/index.ls --require should --compilers ls:livescript",
9+
"coveralls": "istanbul cover _mocha -- test/index.ls --require should --compilers ls:livescript && cat coverage/lcov.info | coveralls"
910
},
1011
"author": "Furqan Zafar",
1112
"dependencies": {
@@ -19,6 +20,7 @@
1920
"brfs": "^1.4.1",
2021
"browserify": "^9.0.3",
2122
"browserify-shim": "^3.8.10",
23+
"coveralls": "^2.11.4",
2224
"gulp": "^3.8.11",
2325
"gulp-connect": "^2.2.0",
2426
"gulp-if": "^1.2.5",
@@ -32,6 +34,8 @@
3234
"jsdom": "^3.1.2",
3335
"liveify": "^2.0.0",
3436
"livescript": "^1.4.0",
37+
"mocha": "^2.3.3",
38+
"mocha-lcov-reporter": "^1.0.0",
3539
"nib": "^1.1.0",
3640
"react-tools": "^0.13.3",
3741
"should": "^7.1.0",

0 commit comments

Comments
 (0)