method
parallel_worker_id
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::TestCase
parallel_worker_id()public
Returns the current parallel worker ID if tests are running in parallel, nil otherwise.
ActiveSupport::TestCase.parallel_worker_id # => 2