Discussion:
App::ArchiveDevelCover 1.001
Thomas Klausner
2012-06-01 20:22:36 UTC
Permalink
Hi!

Paul's recent work on the wonderful Devel::Cover reminded me that I had
an improved version of App::ArchiveDevelCover lying around on my laptop
since the Baltimore Perl Workshop. So I finally pushed the new version
to CPAN. As I also never announced the initial version here, I'm doing it
now:

App::ArchiveDevelCover (or the "frontend script" 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?).

The new version 1.001 also shows a rather simple diff-like comparison
between the current and previous run.

For a screenshot of the diff, see:
http://domm.plix.at/perl/2012_06_01_app_archive_devel_cover_1_001.html
and for the initial announcement, see:
http://domm.plix.at/perl/2012_02_21_app_archivedevelcover.html

(wow, I should spend some time on generating consistent URLs... :-)

Anyway, any feedback/suggestions/ideas are welcome, the code is on
https://github.com/domm/App-ArchiveDevelCover if you care to look
at the ugly string of copy-statements and 90ies style HTML munging that
I try to hide behind some Moose distractions...

Greetings,
domm
--
#!/usr/bin/perl http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Paul Johnson
2012-06-01 21:15:05 UTC
Permalink
Post by Thomas Klausner
App::ArchiveDevelCover (or the "frontend script" 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?).
The new version 1.001 also shows a rather simple diff-like comparison
between the current and previous run.
This is great! I was just thinking about cpancover.com and that it
would be nice to have something like this to compare different runs.
Post by Thomas Klausner
http://domm.plix.at/perl/2012_06_01_app_archive_devel_cover_1_001.html
You mention here that to extend it further you should look into the
database. Of course, you should have been doing that already :-) There
is an API to get at the information, and I don't think it's too
complicated. The docs are in Devel::Cover::DB and
Devel::Cover::Report::Text is probably the best example to crib from.
If you need anything that's not in the API then we'll extend it, but all
the reports go through the API so I think it's fairly complete.
Post by Thomas Klausner
http://domm.plix.at/perl/2012_02_21_app_archivedevelcover.html
You talk here about Devel::Cover's speed. That's something I'm hoping
to get time to look at under this grant too.
--
Paul Johnson - ***@pjcj.net
http://www.pjcj.net
Loading...