archive_devel_cover.pl - script to archive Devel::Cover reports
version 1.001
~/perl/Some-Project$ archive_devel_cover.pl --project Some-Project --from cover_db/ --to /var/www/coverage_reports/some_project/
Do you want to see how your test coverage (as reported by the wonderful Devel::Cover) changes over time? If yes, then give archive_devel_cover.pl a try!
archive_devel_cover.pl
archive_devel_cover.pl will copy your most current coverage report into an archive and set up a small index page, showing the most relevant (IMO) metrics and a "trend" (did you cover more or less code since the last run?).
NOTE: Currently there is nearly no input checking implemented, so if you use archive_devel_cover.pl on directories that contain other stuff than what's expected, strange things might happen...
~$ C<archive_devel_cover.pl> --from path/to/cover_db --to target/dir
This statement will copy the contents of path/to/cover_db (which should be the result of a Devel-Cover testrun) into a directory in target/dir named like the ISO8601 formatted date of the test run (eg. 2012-02-26T00:32:42). The values for statement coverage, subroutine coverage and total coverage are stored in a very basic database (read: CSV text file) for later comparison. A link to the current run is added to the file index.html, together with the total coverage metrics and a trend value.
2012-02-26T00:32:42
The directory containing the HTML report generated by Devel::Cover.
The directory that contains the collection of all coverage reports for this project.
The name of the project you're archiving. Currently only used in the generated HTML report. Defaults to 'unnamed project'.
Thomas Klausner <domm@cpan.org>
This software is copyright (c) 2012 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::ArchiveDevelCover, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ArchiveDevelCover
CPAN shell
perl -MCPAN -e shell install App::ArchiveDevelCover
For more information on module installation, please visit the detailed CPAN module installation guide.