Commit e8ba4d18 e8ba4d1867b1a95affa5124ce7443a8b60dbff0a by Nicolas Perriault

fixed missing text padding in result reports

1 parent 3f83240d
...@@ -446,16 +446,16 @@ var Tester = function(casper, options) { ...@@ -446,16 +446,16 @@ var Tester = function(casper, options) {
446 result = f('%s %s tests executed, %d passed, %d failed.', 446 result = f('%s %s tests executed, %d passed, %d failed.',
447 statusText, total, this.testResults.passed, this.testResults.failed); 447 statusText, total, this.testResults.passed, this.testResults.failed);
448 } 448 }
449 casper.echo(this.colorize(result, style, this.options.pad)); 449 casper.echo(result, style, this.options.pad);
450 if (this.testResults.failed > 0) { 450 if (this.testResults.failed > 0) {
451 this.renderFailureDetails(this.testResults.failures); 451 this.renderFailureDetails(this.testResults.failures);
452 } 452 }
453 if (save && utils.isFunction(require)) { 453 if (save && utils.isFunction(require)) {
454 try { 454 try {
455 fs.write(save, this.exporter.getXML(), 'w'); 455 fs.write(save, this.exporter.getXML(), 'w');
456 casper.echo(f('Result log stored in %s', save), 'INFO'); 456 casper.echo(f('Result log stored in %s', save), 'INFO', 80);
457 } catch (e) { 457 } catch (e) {
458 casper.echo(f('Unable to write results to %s: %s', save, e), 'ERROR'); 458 casper.echo(f('Unable to write results to %s: %s', save, e), 'ERROR', 80);
459 } 459 }
460 } 460 }
461 if (exit === true) { 461 if (exit === true) {
......