class Cucumber::Messages::TestRunFinished

Attributes

message[R]

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.
success[R]

success = StrictModeEnabled ? (failed_count == 0 && ambiguous_count == 0 && undefined_count == 0 && pending_count == 0) : (failed_count == 0 && ambiguous_count == 0)

timestamp[R]

Timestamp when the TestRun is finished

Public Class Methods

from_h(hash) click to toggle source

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... ...>
# File lib/cucumber/messages.deserializers.rb, line 1046
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
new( message: nil, success: false, timestamp: Timestamp.new ) click to toggle source
# File lib/cucumber/messages.dtos.rb, line 1719
def initialize(
  message: nil,
  success: false,
  timestamp: Timestamp.new
)
  @message = message
  @success = success
  @timestamp = timestamp
end