We use Test::Class for all our tests, with a single script (_t.pl) that automatically loads and runs all test classes.

Unfortunately, with prove and the standard test harness, this causes test output in which all tests are listed under a single script.

    /home/swartz/env/hm/lib/HM/t/_t....ok
    All tests successful.
    Files=1, Tests=628,  112 wallclock secs ...

When viewing on standard output, this is annoying, but we have always lived with it, as we can always -v to get more detail.

However, now that we're using starting to use smolder, the problem becomes more prounounced, as the smolder display and the color bar is really optimized for tests to be split up among many scripts. What we get is a single gigantic color bar for _t.pl.

I'd like to avoid actually running a single script per class, for efficiency reasons - i.e. I agree with Ovid and Adrian here:
    http://use.perl.org/~Ovid/journal/31172

It seems like it should be possible (easy?) to create a new TAP::Harness that treated each Test::Class class as its own "script" in the output. I was going to embark on this, but it felt like an obvious step, so I wanted to see if it had been done already, or if the Test::Class folks were working on a standard solution.

Thanks!
Jon

Reply via email to