Class: MiniTestQueueRunner
- Inherits:
-
MiniTest::Unit
- Object
- MiniTest::Unit
- MiniTestQueueRunner
- Defined in:
- lib/test_queue/runner/minitest4.rb
Instance Method Summary collapse
Instance Method Details
#_run_anything ⇒ Object
21 22 23 24 25 |
# File 'lib/test_queue/runner/minitest4.rb', line 21 def _run_anything(*) ret = super output.puts ret end |
#_run_suite(suite, type) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/test_queue/runner/minitest4.rb', line 27 def _run_suite(suite, type) output.print ' ' output.print suite output.print ': ' start = Time.now ret = super diff = Time.now - start output.puts(' <%.3f>' % diff) ret end |
#_run_suites(suites, type) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/test_queue/runner/minitest4.rb', line 8 def _run_suites(suites, type) self.class.output = $stdout if defined?(ParallelEach) # Ignore its _run_suites implementation since we don't handle it gracefully. # If we don't do this #partition is called on the iterator and all suites # distributed immediately, instead of picked up as workers are available. suites.map { |suite| _run_suite suite, type } else super end end |