Module: Mutineer::MinitestIntegration::InTestDatabaseError::NoteQueueOrder

Defined in:
lib/mutineer/minitest_integration/in_test_database_error.rb

Overview

Prepended on Minitest::Parallel::Executor. Records each job as the main thread enqueues it, which is Minitest's run order for a parallelize_me! class. The workers then finish in another order.

Instance Method Summary collapse

Instance Method Details

#<<(work) ⇒ Object

Records the job, then queues it.

Parameters:

  • work (Array, Object) —

    [klass, method_name, reporter], or whatever else the executor was given.

Returns:

  • (Object) —

    whatever Minitest::Parallel::Executor#<< returns.



95
96
97
98
# File 'lib/mutineer/minitest_integration/in_test_database_error.rb', line 95

def <<(work)
  InTestDatabaseError.note_queued(work)
  super
end