Class: Hydra::Messages::Runner::Results

Inherits:
Hydra::Message show all
Defined in:
lib/hydra/message/runner_messages.rb

Overview

Message for the Runner to respond with its results

Direct Known Subclasses

Worker::Results

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hydra::Message

build, #initialize

Constructor Details

This class inherits a constructor from Hydra::Message

Instance Attribute Details

#fileObject

The file that was run



16
17
18
# File 'lib/hydra/message/runner_messages.rb', line 16

def file
  @file
end

#outputObject

The output from running the test



14
15
16
# File 'lib/hydra/message/runner_messages.rb', line 14

def output
  @output
end

#statsObject

Stats on the number of tests, assertions, errors and failures



18
19
20
# File 'lib/hydra/message/runner_messages.rb', line 18

def stats
  @stats
end

Instance Method Details

#handle(worker, runner) ⇒ Object

:nodoc:



26
27
28
# File 'lib/hydra/message/runner_messages.rb', line 26

def handle(worker, runner) #:nodoc:
  worker.relay_results(self, runner)
end

#serializeObject

:nodoc:



19
20
21
22
23
24
25
# File 'lib/hydra/message/runner_messages.rb', line 19

def serialize #:nodoc:
  super(
    :output => @output,
    :file   => @file,
    :stats  => @stats
  )
end