Class: LiveUnit::PrintReporter
- Defined in:
- lib/liveunit/print_reporter.rb
Overview
default reporter that writes results to stdout
Instance Attribute Summary
Attributes inherited from Reporter
#liveunit_assertions, #liveunit_fails, #liveunit_passes, #liveunit_results
Instance Method Summary collapse
Methods inherited from Reporter
Constructor Details
This class inherits a constructor from LiveUnit::Reporter
Instance Method Details
#report ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/liveunit/print_reporter.rb', line 7 def report results.each do |re| puts "Failure : " + re[:case] puts "Message : " + re[:msg] puts re[:expectation] #skip printing the env, too much noise #puts "Environment : " + re[:env].to_s puts end end |