J
Jim Weirich
I'm rather surprised by the following result:
$ cat x.rb
require 'test/unit'
requrie 'somethingelse'
class TestIt < Test::Unit::TestCase
def test_one
assert_equal 1, 2
end
end
$ ruby x.rb
Loaded suite x
Started
Finished in 0.005333 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
Although the 0 tests/0 assertions is a big clue something is wrong, I
would have expected a little more helpful indication of error (e.g.
Undefined method 'requrie') along with the file name and line number.
It seems that test/unit is swallowing this information somehow/
$ cat x.rb
require 'test/unit'
requrie 'somethingelse'
class TestIt < Test::Unit::TestCase
def test_one
assert_equal 1, 2
end
end
$ ruby x.rb
Loaded suite x
Started
Finished in 0.005333 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
Although the 0 tests/0 assertions is a big clue something is wrong, I
would have expected a little more helpful indication of error (e.g.
Undefined method 'requrie') along with the file name and line number.
It seems that test/unit is swallowing this information somehow/