Skip to content

Commit aa9800a

Browse files
author
florian
committed
chore: Add code coverage report
1 parent dfc8e17 commit aa9800a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
.idea
33
dist
4-
lib
4+
lib
5+
coverage
6+
.nyc_output

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ before_script:
1414
script:
1515
- npm run test
1616
after_success:
17+
- npm run report-coverage
1718
- npm run semantic-release
1819
branches:
1920
except:

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "A React component to navigate horizontally between cards of same width",
55
"main": "lib/index.js",
66
"scripts": {
7-
"test": "babel-tape-runner test/**.js",
7+
"test": "nyc babel-tape-runner test/**.js",
8+
"posttest": "nyc report --reporter=lcov",
9+
"report-coverage": "cat ./coverage/lcov.info | codecov",
810
"build": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src",
911
"dev": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src -w",
1012
"example": "node webpack.example.js",
@@ -34,10 +36,12 @@
3436
"babel-preset-stage-1": "^6.5.0",
3537
"babel-tape-runner": "^2.0.1",
3638
"bootstrap": "^4.0.0-alpha.2",
39+
"codecov.io": "^0.1.6",
3740
"css-loader": "^0.23.1",
3841
"cz-conventional-changelog": "^1.1.6",
3942
"extract-text-webpack-plugin": "^1.0.1",
4043
"html-webpack-plugin": "^2.16.0",
44+
"istanbul": "^0.4.4",
4145
"node-sass": "^3.6.0",
4246
"react": "^15.0.1",
4347
"react-dom": "^15.0.1",

0 commit comments

Comments
 (0)