Skip to content

Commit

Permalink
Fix 'jake test' command
Browse files Browse the repository at this point in the history
  • Loading branch information
saebekassebil committed Jan 4, 2014
1 parent c61423e commit 44d1e50
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var path = require('path'),
ugly = require('uglify-js'),
jshint = require('jshint'),
exec = require('child_process').exec,
spawn = require('child_process').spawn,
existsSync = 'existsSync' in fs ? fs.existsSync : path.existsSync;

// Default settings
Expand Down Expand Up @@ -177,16 +178,8 @@ task('minify', function() { doBuild('minify'); }, { async: true });
// Unit test the project
desc('Unit tests against current build');
task('test', function() {
var build = jake.Task.build;
build.addListener('complete', function() {
exec('vows --dot-matrix test/*', function(err, stdout) {
console.log(stdout);
complete();
});
});

settings.silent = true;
build.invoke();
var vows = spawn('vows', ['--dot-matrix', 'test/*'], { customFds: [0,1,2] });
vows.on('exit', complete);
}, { async: true });

// Lints the files according to .jshintrc
Expand Down

0 comments on commit 44d1e50

Please sign in to comment.