Skip to content

Commit 6812fb6

Browse files
author
Nathan Mahdavi
committed
add coverage
1 parent 3a907a3 commit 6812fb6

File tree

4 files changed

+177
-2
lines changed

4 files changed

+177
-2
lines changed

Diff for: .travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dist: trusty
1111

1212
jobs:
1313
include:
14-
- script: npm run lint
1514
- script:
15+
- npm run lint
1616
- npm run test:prod
17+
- npm run coverage

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# npm user manager
22

3-
[![Travis](https://img.shields.io/travis/scripter-co/npm-users.svg)](https://travis-ci.org/scripter-co/npm-users) [![npm](https://img.shields.io/npm/v/npm-users.svg)](https://www.npmjs.com/package/npm-users)
3+
[![Travis](https://img.shields.io/travis/scripter-co/npm-users.svg)](https://travis-ci.org/scripter-co/npm-users) [![Codecov](https://img.shields.io/codecov/c/github/scripter-co/npm-users.svg)]() [![npm](https://img.shields.io/npm/v/npm-users.svg)](https://www.npmjs.com/package/npm-users)
44

55

66
## Installation

Diff for: package-lock.json

+172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"test": "jest --watch",
88
"test:prod": "jest",
9+
"coverage": "jest --coverage && codecov",
910
"lint": "eslint ."
1011
},
1112
"bin": {
@@ -21,6 +22,7 @@
2122
"commander": "^2.12.2"
2223
},
2324
"devDependencies": {
25+
"codecov": "^3.0.0",
2426
"eslint": "^4.15.0",
2527
"eslint-plugin-jest": "^21.6.1",
2628
"jest": "^22.0.6"

0 commit comments

Comments
 (0)