Class: Hydra::Messages::Runner::Results
- Inherits:
-
Hydra::Message
- Object
- Hydra::Message
- Hydra::Messages::Runner::Results
- Defined in:
- lib/hydra/message/runner_messages.rb
Overview
Message for the Runner to respond with its results
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
The file that was run.
-
#output ⇒ Object
The output from running the test.
-
#stats ⇒ Object
Stats on the number of tests, assertions, errors and failures.
Instance Method Summary collapse
-
#handle(worker, runner) ⇒ Object
:nodoc:.
-
#serialize ⇒ Object
:nodoc:.
Methods inherited from Hydra::Message
Constructor Details
This class inherits a constructor from Hydra::Message
Instance Attribute Details
#file ⇒ Object
The file that was run
16 17 18 |
# File 'lib/hydra/message/runner_messages.rb', line 16 def file @file end |
#output ⇒ Object
The output from running the test
14 15 16 |
# File 'lib/hydra/message/runner_messages.rb', line 14 def output @output end |
#stats ⇒ Object
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 |
#serialize ⇒ Object
: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 |