class method
self.parallel_worker_id
Ruby on Rails 8.1.2
Since v8.1.2Signature
self.parallel_worker_id()
Returns the current parallel worker ID if tests are running in parallel, nil otherwise.
ActiveSupport::TestCase.parallel_worker_id # => 2
Source
# File activesupport/lib/active_support/test_case.rb, line 34
def parallel_worker_id
@@parallel_worker_id
end
Defined in activesupport/lib/active_support/test_case.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TestCase