Re: Unit Tests

Jacob Atzen
Thu, 24 May 2007 09:35:37 -0000

On Thu, May 24, 2007 at 07:59:57AM -0000, giorgio wrote:
> If you have (say) 50 unit tests how do you run them all and check that
> there are no failures.
> I have a script that runs all the tests but it is difficult to spot
> failures in the mass of output....

A tip if you want nicely colored and formatted output:

        gem install turn
        gem install facets

And then in test_helper.rb:

        require ''turn''

It is somewhat more verbose than the default test/unit output, so it''s
a
matter of taste. I''m not sure the coloring works on windows though, the
formatting is still good.

--
Cheers,
- Jacob Atzen