Class: Test::Unit::Failure

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from XMLReportable

#to_xml

Instance Attribute Details

#elapsed_timeObject

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

#metadataObject

Returns the value of attribute metadata.



90
91
92
# File 'lib/test-unit-ext/metadata.rb', line 90

def 
  @metadata
end

#testObject

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_displayObject



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_metadataObject



92
# File 'lib/test-unit-ext/metadata.rb', line 92

alias_method :long_display_without_metadata, :long_display

#original_long_displayObject



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_nameObject



110
111
112
# File 'lib/test-unit-ext/xml-report.rb', line 110

def status_name
  "failure"
end