Skip to content
This repository was archived by the owner on Oct 18, 2018. It is now read-only.

Commit 7dccfed

Browse files
authored
Add test coverage (#15) (#19)
1 parent e7e9077 commit 7dccfed

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515
- npm install
1616

1717
script:
18-
- npm test
18+
- npm run test-coverage
1919

2020
before_deploy:
2121
- npm run build

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# react-tree-es6
22

33
[![Build Status](https://travis-ci.org/hckhanh/react-tree-es6.svg?branch=master)](https://travis-ci.org/hckhanh/react-tree-es6)
4+
[![dependencies Status](https://david-dm.org/hckhanh/react-tree-es6/status.svg)](https://david-dm.org/hckhanh/react-tree-es6)
5+
[![Coverage Status](https://coveralls.io/repos/github/hckhanh/react-tree-es6/badge.svg)](https://coveralls.io/github/hckhanh/react-tree-es6)
46

57
The wrapper of jsTree (jstree.com) for React
68

79
## Getting Started
810

911
If you want to find a **tree view** component for React, this module is what you need.
12+
It supports **ES6** and backward compatible with **ES5**.
1013

1114
## Installation
1215

@@ -144,3 +147,7 @@ If user want to apply css for **ReactTree**, consider to include these files:
144147

145148
* node_modules/jstree/dist/themes/default/style.min.css
146149
* node_modules/jstree/dist/themes/default-dark/style.min.css
150+
151+
## License
152+
153+
MIT (<http://www.opensource.org/licenses/mit-license.php>)

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"start": "webpack-dev-server --port=3000",
88
"test": "jest",
9+
"test-coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls",
910
"build": "gulp build"
1011
},
1112
"repository": {
@@ -36,6 +37,7 @@
3637
"babel-loader": "^6.2.4",
3738
"babel-preset-es2015": "^6.13.2",
3839
"babel-preset-react": "^6.11.1",
40+
"coveralls": "^2.11.12",
3941
"css-loader": "^0.23.1",
4042
"extract-text-webpack-plugin": "^1.0.1",
4143
"file-loader": "^0.9.0",

0 commit comments

Comments
 (0)