Module: RRRSpec::Client::SlaveRunner::RedisReportingFormatter::ClassMethods
- Defined in:
- lib/rrrspec/client/slave_runner.rb
Instance Attribute Summary collapse
-
#failed ⇒ Object
readonly
Returns the value of attribute failed.
-
#passed ⇒ Object
readonly
Returns the value of attribute passed.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
Instance Method Summary collapse
- #example_failed(notification) ⇒ Object
- #example_passed ⇒ Object
- #example_pending ⇒ Object
- #reset ⇒ Object
- #status ⇒ Object
Instance Attribute Details
#failed ⇒ Object (readonly)
Returns the value of attribute failed.
110 111 112 |
# File 'lib/rrrspec/client/slave_runner.rb', line 110 def failed @failed end |
#passed ⇒ Object (readonly)
Returns the value of attribute passed.
110 111 112 |
# File 'lib/rrrspec/client/slave_runner.rb', line 110 def passed @passed end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
110 111 112 |
# File 'lib/rrrspec/client/slave_runner.rb', line 110 def pending @pending end |
Instance Method Details
#example_failed(notification) ⇒ Object
127 128 129 130 131 132 |
# File 'lib/rrrspec/client/slave_runner.rb', line 127 def example_failed(notification) @failed += 1 if notification.exception.is_a?(SoftTimeoutException) @timeout = true end end |
#example_passed ⇒ Object
119 120 121 |
# File 'lib/rrrspec/client/slave_runner.rb', line 119 def example_passed @passed += 1 end |
#example_pending ⇒ Object
123 124 125 |
# File 'lib/rrrspec/client/slave_runner.rb', line 123 def example_pending @pending += 1 end |
#reset ⇒ Object
112 113 114 115 116 117 |
# File 'lib/rrrspec/client/slave_runner.rb', line 112 def reset @passed = 0 @pending = 0 @failed = 0 @timeout = false end |
#status ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/rrrspec/client/slave_runner.rb', line 134 def status if @timeout 'timeout' elsif @failed != 0 'failed' elsif @pending != 0 'pending' else 'passed' end end |