Class: TestQueue::Worker
- Inherits:
-
Object
- Object
- TestQueue::Worker
- Defined in:
- lib/test_queue/runner.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#failure_output ⇒ Object
Returns the value of attribute failure_output.
-
#host ⇒ Object
Returns the value of attribute host.
-
#num ⇒ Object
Returns the value of attribute num.
-
#output ⇒ Object
Returns the value of attribute output.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#status ⇒ Object
Returns the value of attribute status.
-
#suites ⇒ Object
readonly
Array of TestQueue::Stats::Suite recording all the suites this worker ran.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(pid, num) ⇒ Worker
constructor
A new instance of Worker.
- #lines ⇒ Object
Constructor Details
#initialize(pid, num) ⇒ Worker
Returns a new instance of Worker.
19 20 21 22 23 24 25 |
# File 'lib/test_queue/runner.rb', line 19 def initialize(pid, num) @pid = pid @num = num @start_time = Time.now @output = '' @suites = [] end |
Instance Attribute Details
#end_time ⇒ Object
Returns the value of attribute end_time.
13 14 15 |
# File 'lib/test_queue/runner.rb', line 13 def end_time @end_time end |
#failure_output ⇒ Object
Returns the value of attribute failure_output.
14 15 16 |
# File 'lib/test_queue/runner.rb', line 14 def failure_output @failure_output end |
#host ⇒ Object
Returns the value of attribute host.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def host @host end |
#num ⇒ Object
Returns the value of attribute num.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def num @num end |
#output ⇒ Object
Returns the value of attribute output.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def output @output end |
#pid ⇒ Object
Returns the value of attribute pid.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def pid @pid end |
#start_time ⇒ Object
Returns the value of attribute start_time.
13 14 15 |
# File 'lib/test_queue/runner.rb', line 13 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def status @status end |
#suites ⇒ Object (readonly)
Array of TestQueue::Stats::Suite recording all the suites this worker ran.
17 18 19 |
# File 'lib/test_queue/runner.rb', line 17 def suites @suites end |
#summary ⇒ Object
Returns the value of attribute summary.
14 15 16 |
# File 'lib/test_queue/runner.rb', line 14 def summary @summary end |
Instance Method Details
#lines ⇒ Object
27 28 29 |
# File 'lib/test_queue/runner.rb', line 27 def lines @output.split("\n") end |