Class: ASAutotest::TestRunner::Result::Failure::Simple

Inherits:
ASAutotest::TestRunner::Result::Failure show all
Defined in:
lib/asautotest/test-runner.rb

Constant Summary

Constants included from Logging

Logging::PREFIX

Instance Attribute Summary

Attributes inherited from ASAutotest::TestRunner::Result

#test_name

Instance Method Summary collapse

Methods inherited from ASAutotest::TestRunner::Result::Failure

#failed?, #print_report!

Methods inherited from ASAutotest::TestRunner::Result

#local_and_suite_names, #local_name, parse_xml, #passed?, #suite_name

Methods included from Logging

#barf, #end_saying, #end_whisper, #hint, #new_logging_section, #say, #say_with_block, #say_without_block, #shout, #start_saying, #start_whisper, verbose=, verbose?, #verbose?, #whisper, #whisper_with_block, #whisper_without_block

Constructor Details

#initialize(test_name, description) ⇒ Simple

Returns a new instance of Simple.



375
376
377
378
# File 'lib/asautotest/test-runner.rb', line 375

def initialize(test_name, description)
  super(test_name)
  @description = description
end

Instance Method Details

#report_reason!Object



380
381
382
# File 'lib/asautotest/test-runner.rb', line 380

def report_reason!
  puts "    \e[0m#@description\e[0m" if @description
end