From: Ville Mattila Date: 2002-03-21T18:25:23+09:00 Subject: Re: Test::Unit verbose mode Bil Kleb writes: > I didn't realize how much I enjoyed RUnit's verbose > output which told me each test method it ran, e.g., > > $ ruby CellUT.rb > > CellUT#testCreation . > CellUT#testStateAtDisabled . > CellUT#testUpdateDisabled . > Time: 0.000692 > OK (3/3 tests 9 asserts) > > Using Test::Unit with quiet_mode=false yields, > > $ ruby CellUT.rb > Loaded suite CellUT > Started... > .... > Finished in 0.002223 seconds. > 3 runs, 9 assertions, 0 failures, 0 errors > > which is only slightly more informative than quiet_mode itself, > > $ ruby CellUT.rb > ... > 3 runs, 9 assertions, 0 failures, 0 errors > I was missing same thing so I override run in my TestCase i.e class TC_foo < Test::Unit::TestCase def run(result) puts self.name super end def test_flunk flunk("test test and test") end end --- ruby foo.rb Loaded suite foo Started... ...test_flunk(TC_foo) Failure occurred in test_flunk(TC_foo) [foo.rb:8]: test test and test - Ville