I have been writing some unit tests with Test::Unit.
I've noted that when an assertion fails in a test method, the
remaining assertions in the same test method aren't even excuted.
Here is an example:
class TC_example < Test::Unit::TestCase
assert_equal 2, 1 + 1
assert_equal 5, 2 + 2 # gives error
assert_equal 7, 2 + 5 # never executed !!!
assert_equal 8, 3 + 4 # never executed !!!
When running this I get:
C:\> ruby TC_example.rb
Loaded suite TC_example
Finished in 0.01 seconds.