mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
begin fixing coverage tests
This commit is contained in:
parent
f6951816a0
commit
96551c20db
@ -157,7 +157,8 @@ function unittestWatchTask() {
|
||||
}
|
||||
|
||||
function coverageTask() {
|
||||
var files = ['./dist/Chart.bundle.js']
|
||||
//var files = ['./dist/Chart.bundle.js']
|
||||
var files = ['./src/**/*.js'];
|
||||
Array.prototype.unshift.apply(files, preTestFiles);
|
||||
Array.prototype.push.apply(files, testFiles);
|
||||
|
||||
|
@ -7,10 +7,14 @@ module.exports = function(config) {
|
||||
dir: 'coverage/'
|
||||
},
|
||||
|
||||
frameworks: ['jasmine'],
|
||||
frameworks: ['browserify', 'jasmine'],
|
||||
|
||||
preprocessors: {
|
||||
'src/**/*.js': ['coverage']
|
||||
'src/**/*.js': ['browserify', 'coverage']
|
||||
},
|
||||
browserify: {
|
||||
debug: true,
|
||||
transform: ['browserify-istanbul']
|
||||
},
|
||||
|
||||
reporters: ['progress', 'coverage'],
|
||||
|
@ -10,6 +10,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.0",
|
||||
"browserify-istanbul": "^0.2.1",
|
||||
"gulp": "3.9.x",
|
||||
"gulp-concat": "~2.1.x",
|
||||
"gulp-connect": "~2.0.5",
|
||||
@ -26,7 +27,9 @@
|
||||
"jasmine": "^2.3.2",
|
||||
"jasmine-core": "^2.3.4",
|
||||
"jquery": "^2.1.4",
|
||||
"jshint-stylish": "~2.1.0",
|
||||
"karma": "^0.12.37",
|
||||
"karma-browserify": "^5.0.1",
|
||||
"karma-chrome-launcher": "^0.2.0",
|
||||
"karma-coverage": "^0.5.1",
|
||||
"karma-firefox-launcher": "^0.1.6",
|
||||
@ -34,8 +37,7 @@
|
||||
"karma-jasmine-html-reporter": "^0.1.8",
|
||||
"merge-stream": "^1.0.0",
|
||||
"semver": "^3.0.1",
|
||||
"vinyl-source-stream": "^1.1.0",
|
||||
"jshint-stylish": "~2.1.0"
|
||||
"vinyl-source-stream": "^1.1.0"
|
||||
},
|
||||
"spm": {
|
||||
"main": "Chart.js"
|
||||
|
Loading…
Reference in New Issue
Block a user