Class: Test::Unit::Error
- Inherits:
-
Object
- Object
- Test::Unit::Error
- Includes:
- AttributesFormatter, XMLReportable
- Defined in:
- lib/test-unit-ext/attributes.rb,
lib/test-unit-ext/xml-report.rb,
lib/test-unit-ext/long-display-for-emacs.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
- #location ⇒ Object
- #long_display ⇒ Object
- #long_display_without_attributes ⇒ Object
- #original_long_display ⇒ Object
- #status_name ⇒ Object
Methods included from XMLReportable
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
119 120 121 |
# File 'lib/test-unit-ext/attributes.rb', line 119 def attributes @attributes end |
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time.
116 117 118 |
# File 'lib/test-unit-ext/xml-report.rb', line 116 def elapsed_time @elapsed_time end |
#test ⇒ Object
Returns the value of attribute test.
116 117 118 |
# File 'lib/test-unit-ext/xml-report.rb', line 116 def test @test end |
Instance Method Details
#location ⇒ Object
122 123 124 |
# File 'lib/test-unit-ext/xml-report.rb', line 122 def location filter_backtrace(@exception.backtrace) end |
#long_display ⇒ Object
122 123 124 125 126 |
# File 'lib/test-unit-ext/attributes.rb', line 122 def long_display test_name_re = Regexp.escape(@test_name) long_display_without_attributes.sub(/(^#{test_name_re}:\n)/, "\\1#{format_attributes}") end |
#long_display_without_attributes ⇒ Object
121 |
# File 'lib/test-unit-ext/attributes.rb', line 121 alias_method :long_display_without_attributes, :long_display |
#original_long_display ⇒ Object
19 20 21 22 23 |
# File 'lib/test-unit-ext/long-display-for-emacs.rb', line 19 def long_display test_name_re = Regexp.escape(@test_name) long_display_without_attributes.sub(/(^#{test_name_re}:\n)/, "\\1#{format_attributes}") end |
#status_name ⇒ Object
118 119 120 |
# File 'lib/test-unit-ext/xml-report.rb', line 118 def status_name "error" end |