Bug #763: Mini-unit should not auto-run tests when exiting due to an exception
http://redmine.ruby-lang.org/issues/show/763

Author: Paul Brannan
Status: Open, Priority: Normal

[pbrannan@zem tmp]$ cat test.rb
require 'test/unit'

class MyTest < Test::Unit::TestCase
  def test_foo
    assert false, "this function should never get called"
  end
end

# Calling raise here should exit the application without running any tests
raise "HA HA"

[pbrannan@zem tmp]$ ruby1.9 test.rb
/usr/local/lib/ruby1.9/1.9.0/minitest/unit.rb:207: warning: mismatched indentations at 'end' with 'def' at 194
Loaded suite test
Started
F
Finished in 0.002771 seconds.

  1) Failure:
test_foo(MyTest) [test.rb:5]:
this function should never get called

1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
test.rb:9:in `<main>': HA HA (RuntimeError)


----------------------------------------
http://redmine.ruby-lang.org