From 38b2925e6c9ffe6c1b71087a94ec22d04e570200 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 14 Feb 2016 09:38:26 -0500 Subject: [PATCH] Use coveralls to report lines of coverage and add a badge to the readme --- README.md | 3 ++- karma.coverage.conf.js | 7 +++++-- package.json | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d86543f8b..4be188e8f 100644 --- 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) diff --git a/karma.coverage.conf.js b/karma.coverage.conf.js index 55992b0e1..ba75445aa 100644 --- a/karma.coverage.conf.js +++ b/karma.coverage.conf.js @@ -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 diff --git a/package.json b/package.json index 05b86f665..b31416507 100644 --- a/package.json +++ b/package.json @@ -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",