]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use coveralls to report lines of coverage and add a badge to the readme
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 14 Feb 2016 14:38:26 +0000 (09:38 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 14 Feb 2016 14:38:26 +0000 (09:38 -0500)
README.md
karma.coverage.conf.js
package.json

index d86543f8bb965b01e7b74daac7828597506d9002..4be188e8fe9a3cafd737d550b17404259128d96d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
 # Chart.js 
 
-[![Build Status](https://travis-ci.org/nnnick/Chart.js.svg?branch=v2.0-dev)](https://travis-ci.org/nnnick/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)
+[![Build Status](https://travis-ci.org/nnnick/Chart.js.svg?branch=v2.0-dev)](https://travis-ci.org/nnnick/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)[![Coverage Status](https://coveralls.io/repos/nnnick/Chart.js/badge.svg?branch=v2.0-dev)](https://coveralls.io/r/nnncik/Chart.js?branch=v2.0-dev)
+
 
 
 *Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org)
index 55992b0e12e86df0768093919ed9740ca3f54185..ba75445aad6dd1a95318669b0f0906f4be3ecb95 100644 (file)
@@ -18,8 +18,11 @@ module.exports = function(config) {
                
                reporters: ['progress', 'coverage'],
                coverageReporter: {
-                       type: 'html',
-                       dir: 'coverage/'
+                       dir: 'coverage/',
+                       reporters: [
+                               { type: 'html', subdir: 'report-html' },
+                               { type: 'lcovonly', subdir: '.', file: 'lcov.info' }
+                       ]
                }
        });
 };
\ No newline at end of file
index 05b86f665e0d43c5e553139ecd255c30e8a9cf4c..b314165078c8299b534360e048a833164505c107 100644 (file)
@@ -11,6 +11,7 @@
   "devDependencies": {
     "browserify": "^13.0.0",
     "browserify-istanbul": "^0.2.1",
+    "coveralls": "^2.11.6",
     "gulp": "3.9.x",
     "gulp-concat": "~2.1.x",
     "gulp-connect": "~2.0.5",