enhanced formatting of tester results
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment