Class: Cucumber::Distrib::Events::TestStepFinished
- Inherits:
-
BaseTestStepEvent
- Object
- Event
- BaseTestStepEvent
- Cucumber::Distrib::Events::TestStepFinished
- Defined in:
- lib/cucumber/distrib/events.rb
Overview
Object that mimic Cucumber::Event::TestStepFinished on Leader for reporters
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from BaseTestStepEvent
Instance Method Summary collapse
- #attributes ⇒ Array<String>
-
#initialize(event) ⇒ TestStepFinished
constructor
A new instance of TestStepFinished.
Methods inherited from Event
Constructor Details
#initialize(event) ⇒ TestStepFinished
Returns a new instance of TestStepFinished.
421 422 423 424 425 426 427 428 429 430 |
# File 'lib/cucumber/distrib/events.rb', line 421 def initialize(event) super if event.result.is_a? ::Cucumber::Core::Test::Result::Failed exception = ::Cucumber::Distrib::Events::Exception.new(event.result.exception) @result = ::Cucumber::Core::Test::Result::Failed.new(event.result.duration, exception) else @result = event.result end end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
418 419 420 |
# File 'lib/cucumber/distrib/events.rb', line 418 def result @result end |
Instance Method Details
#attributes ⇒ Array<String>
433 434 435 |
# File 'lib/cucumber/distrib/events.rb', line 433 def attributes [test_step, result] end |