Class: MiniTest::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/test_queue/runner/minitest5.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runnables=(runnables) ⇒ Object



16
17
18
# File 'lib/test_queue/runner/minitest5.rb', line 16

def self.runnables= runnables
  @@runnables = runnables
end

Instance Method Details

#_synchronizeObject

Synchronize all tests, even serial ones.

Minitest runs serial tests before parallel ones to ensure the unsynchronized serial tests don’t overlap the parallel tests. But since the test-queue master hands out tests without actually loading their code, there’s no way to know which are parallel and which are serial. Synchronizing serial tests does add some overhead, but hopefully this is outweighed by the speed benefits of using test-queue.



28
# File 'lib/test_queue/runner/minitest5.rb', line 28

def _synchronize; Test.io_lock.synchronize { yield }; end