module RRRSpec::Client::SlaveRunner::RedisReportingFormatter::ClassMethods
Attributes
errors_outside_of_examples_count[R]
failed[R]
passed[R]
pending[R]
Public Instance Methods
dump_summary(notification)
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 143 def dump_summary(notification) @errors_outside_of_examples_count = notification.errors_outside_of_examples_count end
example_failed(notification)
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 136 def example_failed(notification) @failed += 1 if notification.exception.is_a?(SoftTimeoutException) @timeout = true end end
example_passed()
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 128 def example_passed @passed += 1 end
example_pending()
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 132 def example_pending @pending += 1 end
reset()
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 120 def reset @passed = 0 @pending = 0 @failed = 0 @errors_outside_of_examples_count = 0 @timeout = false end
status()
click to toggle source
# File lib/rrrspec/client/slave_runner.rb, line 147 def status if @timeout 'timeout' elsif @errors_outside_of_examples_count != 0 'error' elsif @failed != 0 'failed' elsif @pending != 0 'pending' else 'passed' end end