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.
17 18 19 20 21 22 23 |
# File 'lib/test_queue/runner.rb', line 17 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.
11 12 13 |
# File 'lib/test_queue/runner.rb', line 11 def end_time @end_time end |
#failure_output ⇒ Object
Returns the value of attribute failure_output.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def failure_output @failure_output end |
#host ⇒ Object
Returns the value of attribute host.
10 11 12 |
# File 'lib/test_queue/runner.rb', line 10 def host @host end |
#num ⇒ Object
Returns the value of attribute num.
10 11 12 |
# File 'lib/test_queue/runner.rb', line 10 def num @num end |
#output ⇒ Object
Returns the value of attribute output.
10 11 12 |
# File 'lib/test_queue/runner.rb', line 10 def output @output end |
#pid ⇒ Object
Returns the value of attribute pid.
10 11 12 |
# File 'lib/test_queue/runner.rb', line 10 def pid @pid end |
#start_time ⇒ Object
Returns the value of attribute start_time.
11 12 13 |
# File 'lib/test_queue/runner.rb', line 11 def start_time @start_time end |
#status ⇒ Object
Returns the value of attribute status.
10 11 12 |
# File 'lib/test_queue/runner.rb', line 10 def status @status end |
#suites ⇒ Object (readonly)
Array of TestQueue::Stats::Suite recording all the suites this worker ran.
15 16 17 |
# File 'lib/test_queue/runner.rb', line 15 def suites @suites end |
#summary ⇒ Object
Returns the value of attribute summary.
12 13 14 |
# File 'lib/test_queue/runner.rb', line 12 def summary @summary end |
Instance Method Details
#lines ⇒ Object
25 26 27 |
# File 'lib/test_queue/runner.rb', line 25 def lines @output.split("\n") end |