Skip to content

Commit df9555a

Browse files
andrewdaHoussein Djirdeh
authored and
Houssein Djirdeh
committed
test: add test coverage (#571)
* test: add test coverage * docs: add coveralls badge * fix: add coverage to eslintignore
1 parent b30e64b commit df9555a

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
__tests__/**
22
testenv.js
3+
coverage/**

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ cache:
66
node_js:
77
- 7
88
script:
9-
- yarn run test
9+
- yarn run test:coverage
1010
- yarn run eslint

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
## Introduction
4141

4242
[![Build Status](https://img.shields.io/travis/gitpoint/git-point.svg?style=flat-square)](https://travis-ci.org/gitpoint/git-point)
43+
[![Coveralls](https://img.shields.io/coveralls/github/gitpoint/git-point.svg?style=flat-square)](https://coveralls.io/github/gitpoint/git-point)
4344
[![All Contributors](https://img.shields.io/badge/all_contributors-59-orange.svg?style=flat-square)](#contributors)
4445
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
4546
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"prettier": "prettier --write \"**/*.js\"",
2424
"test": "jest",
2525
"test:watch": "jest --watch",
26+
"test:coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
2627
"flow-start": "flow start",
2728
"flow-stop": "flow stop",
2829
"flow-status": "flow status",
@@ -106,6 +107,7 @@
106107
"babel-preset-flow": "^6.23.0",
107108
"babel-preset-react-native": "1.9.1",
108109
"concurrently": "^3.5.0",
110+
"coveralls": "^3.0.0",
109111
"cz-conventional-changelog": "^2.0.0",
110112
"doctoc": "^1.3.0",
111113
"eslint": "^3.19.0",

yarn.lock

+25
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,16 @@ cosmiconfig@^1.1.0:
17661766
pinkie-promise "^2.0.0"
17671767
require-from-string "^1.1.0"
17681768

1769+
coveralls@^3.0.0:
1770+
version "3.0.0"
1771+
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.0.tgz#22ef730330538080d29b8c151dc9146afde88a99"
1772+
dependencies:
1773+
js-yaml "^3.6.1"
1774+
lcov-parse "^0.0.10"
1775+
log-driver "^1.2.5"
1776+
minimist "^1.2.0"
1777+
request "^2.79.0"
1778+
17691779
17701780
version "3.3.0"
17711781
resolved "https://registry.yarnpkg.com/crc/-/crc-3.3.0.tgz#fa622e1bc388bf257309082d6b65200ce67090ba"
@@ -4044,6 +4054,13 @@ js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0:
40444054
argparse "^1.0.7"
40454055
esprima "^4.0.0"
40464056

4057+
js-yaml@^3.6.1:
4058+
version "3.10.0"
4059+
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
4060+
dependencies:
4061+
argparse "^1.0.7"
4062+
esprima "^4.0.0"
4063+
40474064
jsbn@~0.1.0:
40484065
version "0.1.1"
40494066
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
@@ -4183,6 +4200,10 @@ lcid@^1.0.0:
41834200
dependencies:
41844201
invert-kv "^1.0.0"
41854202

4203+
lcov-parse@^0.0.10:
4204+
version "0.0.10"
4205+
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
4206+
41864207
left-pad@^1.1.3:
41874208
version "1.1.3"
41884209
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.1.3.tgz#612f61c033f3a9e08e939f1caebeea41b6f3199a"
@@ -4445,6 +4466,10 @@ lodash@^4.0.0, lodash@^4.11.2, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, l
44454466
version "4.17.4"
44464467
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
44474468

4469+
log-driver@^1.2.5:
4470+
version "1.2.5"
4471+
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"
4472+
44484473
log-symbols@^1.0.2:
44494474
version "1.0.2"
44504475
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"

0 commit comments

Comments
 (0)