Class: CemAcpt::TestRunner::LogFormatter::StandardErrorFormatter

Inherits:
Base
  • Object
show all
Defined in:
lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb

Constant Summary

Constants inherited from Base

Base::INDENT

Instance Attribute Summary

Attributes inherited from Base

#subject

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from CemAcpt::TestRunner::LogFormatter::Base

Instance Method Details

#host_name(response = nil) ⇒ Object



23
24
25
26
# File 'lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb', line 23

def host_name(response = nil)
  super(response)
  "Error: #{log_subject.class.name}"
end

#results(response = nil) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb', line 14

def results(response = nil)
  super(response)
  [
    "Error: #{log_subject.class.name}",
    log_subject.detailed_message,
    log_subject.backtrace.join("\n"),
  ]
end

#summary(subject = nil) ⇒ Object



9
10
11
12
# File 'lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb', line 9

def summary(subject = nil)
  super(subject)
  "Error: #{log_subject.detailed_message}"
end

#test_name(response = nil) ⇒ Object



28
29
30
31
# File 'lib/cem_acpt/test_runner/log_formatter/standard_error_formatter.rb', line 28

def test_name(response = nil)
  super(response)
  "Error: #{log_subject.class.name}"
end