Skip to content

Commit

Permalink
dont short circuit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laverdet committed Apr 2, 2013
1 parent bafbd55 commit 7133679
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test.js
Expand Up @@ -19,13 +19,15 @@ function runTest(test, cb) {

proc.on('exit', function(code) {
if (stdout !== 'pass\n' || stderr !== '') {
return cb(new Error(
'Test `'+ test+ '` failed.\n'+
'code: '+ code+ '\n'+
'stderr: '+ stderr+ '\n'+
'stdout: '+ stdout));
console.error(
'test: *fail*\n'+
'code: '+ code+ '\n'+
'stderr: '+ stderr+ '\n'+
'stdout: '+ stdout
);
} else {
console.log(test+ ': '+ 'pass');
}
console.log(test+ ': '+ 'pass');
cb();
});
}
Expand Down

0 comments on commit 7133679

Please sign in to comment.