Class: Test::Unit::Failure
- Inherits:
-
Object
- Object
- Test::Unit::Failure
- Includes:
- MetadataFormatter, XMLReportable
- Defined in:
- lib/test-unit-ext/metadata.rb,
lib/test-unit-ext/xml-report.rb,
lib/test-unit-ext/long-display-for-emacs.rb
Instance Attribute Summary collapse
-
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
- #long_display ⇒ Object
- #long_display_without_metadata ⇒ Object
- #original_long_display ⇒ Object
- #status_name ⇒ Object
Methods included from XMLReportable
Instance Attribute Details
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time.
108 109 110 |
# File 'lib/test-unit-ext/xml-report.rb', line 108 def elapsed_time @elapsed_time end |
#metadata ⇒ Object
Returns the value of attribute metadata.
90 91 92 |
# File 'lib/test-unit-ext/metadata.rb', line 90 def @metadata end |
#test ⇒ Object
Returns the value of attribute test.
108 109 110 |
# File 'lib/test-unit-ext/xml-report.rb', line 108 def test @test end |
Instance Method Details
#long_display ⇒ Object
93 94 95 96 |
# File 'lib/test-unit-ext/metadata.rb', line 93 def long_display .sub(/(^#{Regexp.escape(@test_name)}.*\n)/, "\\1#{}") end |
#long_display_without_metadata ⇒ Object
92 |
# File 'lib/test-unit-ext/metadata.rb', line 92 alias_method :long_display_without_metadata, :long_display |
#original_long_display ⇒ Object
8 9 10 11 |
# File 'lib/test-unit-ext/long-display-for-emacs.rb', line 8 def long_display .sub(/(^#{Regexp.escape(@test_name)}.*\n)/, "\\1#{}") end |
#status_name ⇒ Object
110 111 112 |
# File 'lib/test-unit-ext/xml-report.rb', line 110 def status_name "failure" end |