Use coveralls to report lines of coverage and add a badge to the readme

This commit is contained in:
Evert Timberg 2016-02-14 09:38:26 -05:00
parent 489f7ce6f7
commit 38b2925e6c
3 changed files with 8 additions and 3 deletions

View File

@ -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)

View 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' }
]
}
});
};

View 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",