Commit 7b334b3e 7b334b3e5f025a34ac0679988d806dc47fea7fdd by Nicolas Perriault

enhanced formatting of tester results

1 parent c1315256
...@@ -408,7 +408,7 @@ var Tester = function(casper, options) { ...@@ -408,7 +408,7 @@ var Tester = function(casper, options) {
408 if (failures.length === 0) { 408 if (failures.length === 0) {
409 return; 409 return;
410 } 410 }
411 casper.echo(f("\nDetails for the %d failed tests:\n", failures.length), "PARAMETER"); 411 casper.echo(f("\nDetails for the %d failed test%s:\n", failures.length, failures.length > 1 ? "s" : ""), "PARAMETER");
412 failures.forEach(function(failure) { 412 failures.forEach(function(failure) {
413 casper.echo(f('In %s:', failure.file)); 413 casper.echo(f('In %s:', failure.file));
414 var message; 414 var message;
......