Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
chore(gulp): better test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 16, 2016
1 parent 2bb0acc commit e1435e9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/test.js
Expand Up @@ -34,7 +34,8 @@ module.exports = function (gulp, config) {
configFile: path.join(config.dirname, 'test/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots', 'coverage'],
singleRun: true
autoWatch: hasWatchFlag ? true : false,
singleRun: hasWatchFlag ? false : true
}, function (code) {
gutil.log('Karma has exited with ' + code);
if (code) {
Expand All @@ -55,7 +56,8 @@ module.exports = function (gulp, config) {
configFile: path.join(config.dirname, 'test/~1.2.0/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots'],
singleRun: true
autoWatch: hasWatchFlag ? true : false,
singleRun: hasWatchFlag ? false : true
}, function (code) {
gutil.log('Karma has exited with ' + code);
if (code) {
Expand All @@ -69,7 +71,8 @@ module.exports = function (gulp, config) {
configFile: path.join(config.dirname, 'test/~1.3.0/karma.conf.js'),
browsers: ['PhantomJS'],
reporters: ['dots'],
singleRun: true
autoWatch: hasWatchFlag ? true : false,
singleRun: hasWatchFlag ? false : true
}, function (code) {
gutil.log('Karma has exited with ' + code);
if (code) {
Expand Down

0 comments on commit e1435e9

Please sign in to comment.