Skip to content

Commit 013b0da

Browse files
committed
add coverage report
1 parent 5bcd7b4 commit 013b0da

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
.nyc_output

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_js:
66
- 'iojs'
77
- '0.12'
88
- '0.10'
9+
after_success: npm run coverage

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"node": ">=0.10.0"
1414
},
1515
"scripts": {
16-
"test": "mocha"
16+
"test": "nyc mocha",
17+
"coverage": "nyc report --reporter=text-lcov | coveralls"
1718
},
1819
"files": [
1920
"index.js"
@@ -25,7 +26,9 @@
2526
"es6"
2627
],
2728
"devDependencies": {
29+
"coveralls": "^2.11.4",
2830
"mocha": "*",
31+
"nyc": "^3.2.2",
2932
"promises-aplus-tests": "*"
3033
}
3134
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
> Itty bitty little widdle twinkie pinkie [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation
99
10-
[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie)
10+
[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie) [![Coverage Status](https://coveralls.io/repos/floatdrop/pinkie/badge.svg?branch=master&service=github)](https://coveralls.io/github/floatdrop/pinkie?branch=master)
1111

1212
There are [tons of Promise implementations](https://github.com/promises-aplus/promises-spec/blob/master/implementations.md#standalone) out there, but all of them focus on browser compatibility and are often bloated with functionality.
1313

0 commit comments

Comments
 (0)