Class: DTest::Test::CaseResult
- Inherits:
-
Object
- Object
- DTest::Test::CaseResult
- Defined in:
- lib/dtest/result.rb
Overview
class Result
Instance Attribute Summary collapse
-
#executed ⇒ Object
Returns the value of attribute executed.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#name ⇒ Object
Returns the value of attribute name.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#result ⇒ Object
Returns the value of attribute result.
-
#untested ⇒ Object
Returns the value of attribute untested.
Attributes included from BAResult
#after_failure, #before_failure
Attributes included from Stopwatch
Instance Method Summary collapse
- #add(result) ⇒ Object
-
#initialize(name) ⇒ CaseResult
constructor
A new instance of CaseResult.
Methods included from BAResult
Methods included from Stopwatch
Constructor Details
#initialize(name) ⇒ CaseResult
Returns a new instance of CaseResult.
101 102 103 104 105 106 107 108 109 110 |
# File 'lib/dtest/result.rb', line 101 def initialize(name) super() @name = name @passed = 0 @failed = 0 @executed = 0 @untested = 0 # list of Result @result = [] end |
Instance Attribute Details
#executed ⇒ Object
Returns the value of attribute executed.
99 100 101 |
# File 'lib/dtest/result.rb', line 99 def executed @executed end |
#failed ⇒ Object
Returns the value of attribute failed.
99 100 101 |
# File 'lib/dtest/result.rb', line 99 def failed @failed end |
#name ⇒ Object
Returns the value of attribute name.
97 98 99 |
# File 'lib/dtest/result.rb', line 97 def name @name end |
#passed ⇒ Object
Returns the value of attribute passed.
99 100 101 |
# File 'lib/dtest/result.rb', line 99 def passed @passed end |
#result ⇒ Object
Returns the value of attribute result.
98 99 100 |
# File 'lib/dtest/result.rb', line 98 def result @result end |
#untested ⇒ Object
Returns the value of attribute untested.
99 100 101 |
# File 'lib/dtest/result.rb', line 99 def untested @untested end |
Instance Method Details
#add(result) ⇒ Object
112 113 114 |
# File 'lib/dtest/result.rb', line 112 def add(result) @result << result end |