From b1a67d8a803164ccc7ba27f8450e3b278dd8b5e9 Mon Sep 17 00:00:00 2001 From: Max Guglielmi Date: Thu, 8 Dec 2016 00:16:14 +1100 Subject: [PATCH] Added codecov badge --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eff878a6..14cd5a5e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![Build Status](https://api.travis-ci.org/koalyptus/TableFilter.svg?branch=master)](https://travis-ci.org/koalyptus/TableFilter) [![Document](http://koalyptus.github.io/TableFilter/docs/badge.svg)](https://koalyptus.github.io/TableFilter/docs/source) +[![codecov](https://codecov.io/gh/koalyptus/TableFilter/branch/master/graph/badge.svg)](https://codecov.io/gh/koalyptus/TableFilter) # TableFilter @@ -96,19 +97,23 @@ npm run build-all command will create a production build, run the tests and finally generate the demos: -To run all the tests: +To run all the tests and generate the coverage report: ```shell npm test ``` -and to run specific test(s): +or to run specific test(s): ```shell grunt test-only:test.html grunt test-only:test.html,test-sort.html ``` +to view the coverage report(s), open the `index.html` under the +`report/coverage` folder or +[online](https://codecov.io/gh/koalyptus/TableFilter). + ## Demos Check out the online [examples](http://koalyptus.github.io/TableFilter/examples) or generate the demos locally: