I’m trying to change the output of a test suite, and from what I can
tell the one line I’m interested in (the indication of numbers of
tests, assertions, failures, and errors) is generated by
Test::Unit::TestResult#to_s. It seems like a simple change, but I’m
running into trouble.
The following code:
def to_s() ‘this should be different’; end
class WeirdnessTest < Test::Unit::TestCase
Gives me this result:
Loaded suite test_weirdness
Finished in 0.000871 seconds.
No tests were specified.
1 tests, 1 assertions, 1 failures, 0 errors
Is there some dark magic with test suites or am I just missing
something simple? After looking through some of the test/unit code,
I’m not even sure where Test::Unit::TestResult objects come from, but
I’m still somewhat convinced they’re necessary