begin fixing coverage tests

This commit is contained in:
etimberg 2016-02-13 21:50:12 -05:00
parent f6951816a0
commit 96551c20db
3 changed files with 12 additions and 5 deletions

View File

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

View File

@ -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'],

View File

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