Module: Minitest::ParallelWorkerMetadata

Defined in:
lib/minitest/queue.rb

Overview

Per-worker-process execution metadata, stamped on each result in the process that ran the test (before any DRb send in embedding environments), so that per-process execution order is reconstructable downstream: PARTITION BY parallel_worker_id, parallel_worker_pid ORDER BY parallel_worker_test_index.

Instance Attribute Summary collapse

Instance Attribute Details

#parallel_worker_idObject

Returns the value of attribute parallel_worker_id.



120
121
122
# File 'lib/minitest/queue.rb', line 120

def parallel_worker_id
  @parallel_worker_id
end

#parallel_worker_pidObject

Returns the value of attribute parallel_worker_pid.



120
121
122
# File 'lib/minitest/queue.rb', line 120

def parallel_worker_pid
  @parallel_worker_pid
end

#parallel_worker_test_indexObject

Returns the value of attribute parallel_worker_test_index.



120
121
122
# File 'lib/minitest/queue.rb', line 120

def parallel_worker_test_index
  @parallel_worker_test_index
end