Class: Megatest::Reporters::VerboseReporter

Inherits:
SimpleReporter show all
Defined in:
lib/megatest/reporters.rb

Instance Method Summary collapse

Methods inherited from SimpleReporter

#start, #summary

Methods inherited from AbstractReporter

#initialize, #start, #summary

Constructor Details

This class inherits a constructor from Megatest::Reporters::AbstractReporter

Instance Method Details

#after_test_case(_queue, _test_case, result) ⇒ Object



132
133
134
135
136
137
138
# File 'lib/megatest/reporters.rb', line 132

def after_test_case(_queue, _test_case, result)
  super
  @out.puts
  if result.bad?
    @out.puts @out.colored(render_failure(result))
  end
end

#before_test_case(_queue, test_case) ⇒ Object



128
129
130
# File 'lib/megatest/reporters.rb', line 128

def before_test_case(_queue, test_case)
  @out.print("#{test_case.id} = ")
end