Skip to content

Commit

Permalink
default to halfway between verbose and normal - dots unless it is a f…
Browse files Browse the repository at this point in the history
…ault, then full error message

Later I'll see about maybe just adding a verbosity level and making it respect that.
  • Loading branch information
knzconnor committed Apr 7, 2010
1 parent bc791f5 commit 71271b5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/test_benchmark.rb
Expand Up @@ -29,6 +29,13 @@ def attach_to_mediator
@mediator.add_listener(Test::Unit::TestSuite::FINISHED, &method(:test_suite_finished))
end

def add_fault(fault)
@faults << fault
nl
output("%3d) %s" % [@faults.length, fault.long_display])
@already_outputted = true
end

alias started_old started
def started(result)
started_old(result)
Expand All @@ -38,7 +45,9 @@ def started(result)

alias finished_old finished
def finished(elapsed_time)
finished_old(elapsed_time)
nl
output("Finished in #{elapsed_time} seconds.")
output(@result)
output_benchmarks
output_benchmarks(:suite)
nl
Expand Down

0 comments on commit 71271b5

Please sign in to comment.