Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit eb1aead

Browse files
author
Lars-Magnus Skog
authored
Add nyc and coveralls (#150)
1 parent 2b71337 commit eb1aead

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
.DS_Store
33
npm-debug.log
44
package-lock.json
5+
.nyc_output/

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
language: node_js
2+
23
node_js: stable
4+
35
script:
46
- npm run test-browsers
7+
58
addons:
69
hosts:
710
- airtap.local
811
sauce_connect: true
12+
13+
after_success: npm run coverage

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[![npm](https://img.shields.io/npm/v/level-js.svg)](https://www.npmjs.com/package/level-js)
77
[![Travis](https://secure.travis-ci.org/Level/level-js.svg?branch=master)](http://travis-ci.org/Level/level-js)
88
[![npm](https://img.shields.io/npm/dm/level-js.svg)](https://www.npmjs.com/package/level-js)
9+
[![Coverage Status](https://coveralls.io/repos/github/Level/level-js/badge.svg)](https://coveralls.io/github/Level/level-js)
910
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
1011

1112
## Table of Contents

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"license": "MIT",
77
"main": "index.js",
88
"scripts": {
9-
"test": "standard && airtap --local test/index.js",
10-
"test-browsers": "standard && airtap --sauce-connect --loopback airtap.local test/index.js",
9+
"test": "standard && airtap --local --coverage test/index.js",
10+
"test-browsers": "standard && airtap --sauce-connect --loopback airtap.local --coverage test/index.js",
11+
"coverage": "nyc report --reporter=text-lcov | coveralls",
1112
"remark": "remark README.md CONTRIBUTORS.md CHANGELOG.md UPGRADING.md -o"
1213
},
1314
"files": [
@@ -37,7 +38,9 @@
3738
"devDependencies": {
3839
"airtap": "0.1.0",
3940
"buffer": "~5.1.0",
41+
"coveralls": "^3.0.2",
4042
"level-community": "~3.0.0",
43+
"nyc": "^12.0.2",
4144
"remark-cli": "^5.0.0",
4245
"remark-collapse": "~0.1.2",
4346
"remark-git-contributors": "~0.2.1",

0 commit comments

Comments
 (0)