Skip to content

Commit

Permalink
Update other test tasks to use karma-browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Feb 14, 2016
1 parent 96551c2 commit a84f9d9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function validHTMLTask() {


function unittestTask() {
var files = ['./dist/Chart.bundle.js']
var files = ['./src/**/*.js'];
Array.prototype.unshift.apply(files, preTestFiles);
Array.prototype.push.apply(files, testFiles);

Expand All @@ -145,7 +145,7 @@ function unittestTask() {
}

function unittestWatchTask() {
var files = ['./dist/Chart.bundle.js']
var files = ['./src/**/*.js'];
Array.prototype.unshift.apply(files, preTestFiles);
Array.prototype.push.apply(files, testFiles);

Expand All @@ -157,7 +157,6 @@ function unittestWatchTask() {
}

function coverageTask() {
//var files = ['./dist/Chart.bundle.js']
var files = ['./src/**/*.js'];
Array.prototype.unshift.apply(files, preTestFiles);
Array.prototype.push.apply(files, testFiles);
Expand Down
8 changes: 7 additions & 1 deletion karma.conf.ci.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ module.exports = function(config) {
flags: ['--no-sandbox']
}
},
frameworks: ['jasmine'],
frameworks: ['browserify', 'jasmine'],
reporters: ['progress', 'html'],
preprocessors: {
'src/**/*.js': ['browserify']
},
browserify: {
debug: true
}
};

if (process.env.TRAVIS) {
Expand Down
9 changes: 8 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
module.exports = function(config) {
config.set({
browsers: ['Chrome', 'Firefox'],
frameworks: ['jasmine'],
frameworks: ['browserify', 'jasmine'],
reporters: ['progress', 'html'],

preprocessors: {
'src/**/*.js': ['browserify']
},
browserify: {
debug: true
}
});
};

0 comments on commit a84f9d9

Please sign in to comment.