/ domm

I hack Perl for fun and profit

Follow me on twitter!
Atom Icom ... on Atom!
21.02.2012: App::ArchiveDevelCover 1.000

We all love Devel::Cover, the wonderful code coverage tool by Paul Johnson. But as you might have experienced, generating coverage reports for a big test suite can take quite a time (about an hour in the case of our current project). And each new run overwrites the previous one, which (besides being a big waste of used CPU cycles) makes it hard to see any progress, lack thereof, or, even worse, regress.

So I recently wrote a hackish script to save those precious coverage reports to somewhere safe. And a few days later, I converted the hackish script to a slightly less hackish module, which I now proudly present to you:


It's basically just a bunch of slightly enhanced copy statements, but it's a clear case of "automate easy things that you do often". After running your test suite with Devel::Cover, you can do:

~/Your-Project$ archive_devel_cover --from cover_db/
            --to /var/www/coverage_reports/your_project/

And App::ArchiveDevelCover will not only save your most recent report to the specified location, but will also generate a nice-looking overview page reporting the status of each report, and informing you of the coverage trend (see the screenshot to your right...).


Comments (via senph)

10.01.2012: App::TimeTracker 2.016
07.11.2011: Twin City Perl Workshop 2011
28.10.2011: timetracker.plix.at
17.10.2011: Fixing a non-broken search form
30.09.2011: How to get umlauts via AltGr using Debian and xkb
13.09.2011: Twin City Perl Workshop
08.09.2011: Note to self: Keep versions in sync
06.09.2011: My Perl-job-offer reply
20.08.2011: YAPC::Europe 2011
an image named perl/2012_02_21_app_archivedevelcover_images/screenshot.jpg