Class: Test::Unit::Success
- Inherits:
-
Object
- Object
- Test::Unit::Success
- Includes:
- XMLReportable
- Defined in:
- lib/test-unit-ext/xml-report.rb
Instance Attribute Summary collapse
-
#elapsed_time ⇒ Object
readonly
Returns the value of attribute elapsed_time.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
Instance Method Summary collapse
-
#initialize(test, elapsed_time) ⇒ Success
constructor
A new instance of Success.
- #location ⇒ Object
- #message ⇒ Object
- #status_name ⇒ Object
- #test_case_name ⇒ Object
- #test_name ⇒ Object
Methods included from XMLReportable
Constructor Details
#initialize(test, elapsed_time) ⇒ Success
Returns a new instance of Success.
76 77 78 79 |
# File 'lib/test-unit-ext/xml-report.rb', line 76 def initialize(test, elapsed_time) @test = test @elapsed_time = elapsed_time end |
Instance Attribute Details
#elapsed_time ⇒ Object (readonly)
Returns the value of attribute elapsed_time.
75 76 77 |
# File 'lib/test-unit-ext/xml-report.rb', line 75 def elapsed_time @elapsed_time end |
#test ⇒ Object (readonly)
Returns the value of attribute test.
75 76 77 |
# File 'lib/test-unit-ext/xml-report.rb', line 75 def test @test end |
Instance Method Details
#location ⇒ Object
85 86 87 |
# File 'lib/test-unit-ext/xml-report.rb', line 85 def location [] end |
#message ⇒ Object
81 82 83 |
# File 'lib/test-unit-ext/xml-report.rb', line 81 def nil end |
#status_name ⇒ Object
98 99 100 |
# File 'lib/test-unit-ext/xml-report.rb', line 98 def status_name "success" end |
#test_case_name ⇒ Object
93 94 95 96 |
# File 'lib/test-unit-ext/xml-report.rb', line 93 def test_case_name /\((.*)\)\z/ =~ test_name $1 end |
#test_name ⇒ Object
89 90 91 |
# File 'lib/test-unit-ext/xml-report.rb', line 89 def test_name @test.name end |