Class: Cucumber::Messages::TestRunFinished
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Error message.
-
#success ⇒ Object
readonly
success = StrictModeEnabled ? (failed_count == 0 && ambiguous_count == 0 && undefined_count == 0 && pending_count == 0) : (failed_count == 0 && ambiguous_count == 0).
-
#timestamp ⇒ Object
readonly
Timestamp when the TestRun is finished.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new TestRunFinished from the given hash.
Instance Method Summary collapse
-
#initialize(message: nil, success: false, timestamp: Timestamp.new) ⇒ TestRunFinished
constructor
A new instance of TestRunFinished.
Methods included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(message: nil, success: false, timestamp: Timestamp.new) ⇒ TestRunFinished
Returns a new instance of TestRunFinished.
1721 1722 1723 1724 1725 1726 1727 1728 1729 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1721 def initialize( message: nil, success: false, timestamp: Timestamp.new ) @message = @success = success @timestamp = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Error message. Can be a stack trace from a failed ‘BeforeAll` or `AfterAll`.
If there are undefined parameter types, the message is simply
"The following parameter type(s() are not defined: xxx, yyy".
The independent `UndefinedParameterType` messages can be used to generate
snippets for those parameter types.
1709 1710 1711 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1709 def @message end |
#success ⇒ Object (readonly)
success = StrictModeEnabled ? (failed_count == 0 && ambiguous_count == 0 && undefined_count == 0 && pending_count == 0) : (failed_count == 0 && ambiguous_count == 0)
1714 1715 1716 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1714 def success @success end |
#timestamp ⇒ Object (readonly)
Timestamp when the TestRun is finished
1719 1720 1721 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1719 def @timestamp end |
Class Method Details
.from_h(hash) ⇒ Object
Returns a new TestRunFinished from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::TestRunFinished.from_h(some_hash) # => #<Cucumber::Messages::TestRunFinished:0x... ...>
1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1047 def self.from_h(hash) return nil if hash.nil? self.new( message: hash[:message], success: hash[:success], timestamp: Timestamp.from_h(hash[:timestamp]), ) end |