Skip to content

Commit 47c8d71

Browse files
author
Orjiewuru Kingdom
committed
add coveralls with badge; add coverage threshold
1 parent af224a9 commit 47c8d71

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-pro
2+
repo_token: UGhpjA0Mv9s3OLWbyUuozRBp1u7IwF6OF

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
![NpmVersion](https://img.shields.io/npm/v/npm.svg)
66
[![Build Status](https://travis-ci.org/kingisaac95/react-webpack-starter.svg?branch=feature%2Fdevelop)](https://travis-ci.org/kingisaac95/react-webpack-starter)
7+
[![Coverage Status](https://coveralls.io/repos/github/kingisaac95/react-webpack-starter/badge.svg?branch=feature%2Fdevelop)](https://coveralls.io/github/kingisaac95/react-webpack-starter?branch=master)
78
![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)
89

910
<img width="1440" alt="screen shot 2018-08-21 at 9 02 00 pm" src="https://user-images.githubusercontent.com/26261917/44426324-42d11700-a586-11e8-8e05-8d09bafb9f84.png">

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
"!<rootDir>/node_modules/",
5050
"!<rootDir>/path/to/dir/"
5151
],
52+
"coverageThreshold": {
53+
"global": {
54+
"branches": 40,
55+
"functions": 30,
56+
"lines": 50,
57+
"statements": 50
58+
}
59+
},
5260
"coverageReporters": [
5361
"cobertura",
5462
"html",

0 commit comments

Comments
 (0)