Class: Cosmos::TestStatus
- Defined in:
- lib/cosmos/tools/test_runner/test.rb
Constant Summary collapse
- @@instance =
nil
Instance Attribute Summary collapse
-
#fail_count ⇒ Object
Returns the value of attribute fail_count.
-
#pass_count ⇒ Object
Returns the value of attribute pass_count.
-
#skip_count ⇒ Object
Returns the value of attribute skip_count.
-
#status ⇒ Object
Returns the value of attribute status.
-
#total ⇒ Object
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TestStatus
constructor
A new instance of TestStatus.
Constructor Details
#initialize ⇒ TestStatus
Returns a new instance of TestStatus.
26 27 28 29 30 31 32 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 26 def initialize @status = '' @pass_count = 0 @skip_count = 0 @fail_count = 0 @total = 1 end |
Instance Attribute Details
#fail_count ⇒ Object
Returns the value of attribute fail_count.
21 22 23 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 21 def fail_count @fail_count end |
#pass_count ⇒ Object
Returns the value of attribute pass_count.
19 20 21 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 19 def pass_count @pass_count end |
#skip_count ⇒ Object
Returns the value of attribute skip_count.
20 21 22 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 20 def skip_count @skip_count end |
#status ⇒ Object
Returns the value of attribute status.
18 19 20 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 18 def status @status end |
#total ⇒ Object
Returns the value of attribute total.
22 23 24 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 22 def total @total end |
Class Method Details
.instance ⇒ Object
42 43 44 45 |
# File 'lib/cosmos/tools/test_runner/test.rb', line 42 def self.instance @@instance = self.new unless @@instance @@instance end |