Subject: | testcover action needs to delete cover_db if files are out of date |
When running the testcover action multiple times, an updated .pm file that gets put in blib causes Devel::Cover to get very confused, since it caches lots of info about that file.
I propose that the testcover action include
$self->do_system("cover -delete")
if any files have been changed in blib since the last run. If the latter case is too hard to determine, the the -delete command should be run every time.
Perhaps this bug is really better handled in Devel::Cover, but deleting the cover_db directory each time seems to me like a good enough workaround for now.
-- Chris Dolan