Building notes, projects, and occasional rants

Test::Harness and Devel::Cover

I've been using the alpha/beta's versions of Test::Harness for a couple of weeks now, and I'm very happy with them.

This week, Test::Harness 3.0 was released so it should start to flow naturally to all of you unsuspecting users. There are people more qualified than me to tell you what was changed and why it is a worthy upgrade.

One thing that I noticed during the beta phase was that the HARNESS_PERL_SWITCHES environment variable is no longer supported, so the classic way to run your tests under Devel::Cover:

 HARNESS_PERL_SWITCHES=-MDevel::Cover prove -l t/*.t

no longer works.

Until bug 25559 is fixed (patch is available in the ticket), the last recipe in the Devel::Cover perldoc works:

PERL5OPT=-MDevel::Cover prove -l

(you no longer need t/*.t with the new prove).

Happy testing!