Devel::Cover recommendations... or maybe not?
publiustemp-londonpm at yahoo.com
Thu Mar 15 15:00:26 GMT 2007
--- jesse <jesse at fsck.com> wrote:
> > Ignore that comment. I have a cronjob which rebuilds my coverage
> > reports nightly and all of my colleagues can simply check the
> > Web site I have set up (I'm reasonably sure that none of them have,
> > however).
> You should post your cronjob ;) It'd be useful to folks. Even if it's
> a two line shell script.
Missed this email. Whoops. Here's the cronjob:
if [ -e cover_db ]; then
/usr/bin/perl -e 'open my $f, "> cover_db/coverage.html" or die $!;
print $f "<strong> ", scalar localtime(),
": Rebuilding coverage. Please be patient.</strong>";'
/usr/bin/perl /usr/local/bin/prove -lr t/
There are probably better ways to write this, but I am an awful bash
programmer. Also, the 'print' in there is to have a placeholder on the
Webpage when it's being rebuilt.
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
More information about the london.pm