Class: Minitest::Test
- Inherits:
-
Object
- Object
- Minitest::Test
- Defined in:
- lib/test_queue/runner/minitest5.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#_synchronize ⇒ Object
Synchronize all tests, even serial ones.
Class Method Details
.runnables=(runnables) ⇒ Object
18 19 20 |
# File 'lib/test_queue/runner/minitest5.rb', line 18 def self.runnables=(runnables) @@runnables = runnables end |
Instance Method Details
#_synchronize ⇒ Object
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.
30 31 32 |
# File 'lib/test_queue/runner/minitest5.rb', line 30 def _synchronize Test.io_lock.synchronize { yield } end |