remove ansi codes in test summary, does not work well with hudson

This commit is contained in:
akhil 2014-01-16 15:44:15 -08:00
parent 5e4ee12c0b
commit e2b1a7304b
1 changed files with 4 additions and 4 deletions

View File

@ -186,10 +186,10 @@ var totalStart = Date.now();
function runNextTest() {
if (testNames.length == 0) {
var completion = testsToRun == 0 ? 0 : (100 * (testsRun - testsFailed)) / testsToRun;
stderr.write('\nTotal tests attempted: ' + bold + testsRun + reset +
', failed: ' + bold + testsFailed + reset +
', completion rate: ' + bold + completion.toFixed(0) + '%' + reset +
', total time: ' + bold + ((Date.now() - totalStart) / 1000).toFixed(0) + reset + 's' +
stderr.write('\nTotal tests attempted: ' + testsRun +
', failed: ' + testsFailed +
', completion rate: ' + completion.toFixed(0) + '%' +
', total time: ' + ((Date.now() - totalStart) / 1000).toFixed(0) + 's' +
'\n');
if (testsFailed > 0) {
stderr.write('Failed tests: ' + failedTests.length + '\n');