Skip to content

Commit

Permalink
Only log duration with simple reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Dec 17, 2014
1 parent fef6976 commit c0c8b46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,17 @@ var results = _(function(push) {
push(null, _.nil);
}).merge();

results.on('end', function() {
console.log("Took " + ((Date.now() - start) / 1000) + " seconds");
})

if(t262.config.reporter === 'json') {
results.pipe(jss).pipe(process.stdout);
} else if(t262.config.reporter === 'tap') {
results.pipe(tapify).pipe(process.stdout);
} else if(t262.config.reporter === 'simple') {
results.pipe(simpleReporter);

results.on('end', function() {
console.log("Took " + ((Date.now() - start) / 1000) + " seconds");
})
}

// takes a test collateral stream.
Expand Down

0 comments on commit c0c8b46

Please sign in to comment.