Module: MultiTest
- Defined in:
- lib/multi_test.rb
Class Method Summary collapse
Class Method Details
.disable_autorun ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/multi_test.rb', line 2 def self.disable_autorun if defined?(Test::Unit::Runner) Test::Unit::Runner.module_eval("@@stop_auto_run = true") end if defined?(Minitest) Minitest.instance_eval do def run(*) # propagate the exit code from cucumber or another runner case $! when SystemExit $!.status else true end end end if defined?(Minitest::Unit) Minitest::Unit.class_eval do def run(*) end end end end end |