class Rutema::ReportState
While executing tests the state of each test is collected in an instance of ReportState
and the collection is at the end passed to the available block reporters
ReportState
assumes the timestamp of the first message, the status of the last message and accumulates the duration reported by all messages in it’s collection.
Attributes
duration[R]
status[R]
steps[RW]
test[R]
timestamp[R]
Public Class Methods
new(message)
click to toggle source
# File lib/rutema/core/framework.rb, line 73 def initialize message @test=message.test @timestamp=message.timestamp @duration=message.duration @status=message.status @steps=[message] end
Public Instance Methods
<<(message)
click to toggle source
# File lib/rutema/core/framework.rb, line 81 def <<(message) @steps<<message @duration+=message.duration @status=message.status end