Skip to content

Commit 1526ffc

Browse files
author
Lars-Magnus Skog
authored
Add nyc and coveralls (#115)
1 parent 2bf1d3f commit 1526ffc

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.gitignore

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

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.nyc_output/
2+
.github/ISSUE_TEMPLATE.md

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ node_js:
1010
- 6
1111
- 8
1212
- 10
13+
14+
after_success: npm run coverage

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![Travis](https://img.shields.io/travis/Level/level.svg?label=travis)](http://travis-ci.org/Level/level)
1111
[![AppVeyor](https://img.shields.io/appveyor/ci/Level/level.svg?label=appveyor)](https://ci.appveyor.com/project/Level/level)
1212
[![dependencies](https://david-dm.org/Level/level.svg)](https://david-dm.org/level/level)
13+
[![Coverage Status](https://coveralls.io/repos/github/Level/level/badge.svg)](https://coveralls.io/github/Level/level)
1314
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
1415
[![npm](https://img.shields.io/npm/dm/level.svg)](https://www.npmjs.com/package/level)
1516

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
"opencollective-postinstall": "^2.0.0"
2424
},
2525
"devDependencies": {
26+
"coveralls": "^3.0.2",
27+
"nyc": "^12.0.2",
2628
"standard": "^11.0.0",
2729
"tape": "^4.2.2",
2830
"verify-travis-appveyor": "^3.0.0"
2931
},
3032
"scripts": {
31-
"test": "standard && node test.js && verify-travis-appveyor",
33+
"test": "standard && nyc node test.js && verify-travis-appveyor",
34+
"coverage": "nyc report --reporter=text-lcov | coveralls",
3235
"postinstall": "opencollective-postinstall || exit 0"
3336
},
3437
"engines": {

0 commit comments

Comments
 (0)