[Melbourne-pm] [adelaide.pm] Creating a baseline for Devel::Cover
daniel at rimspace.net
Wed Jun 30 23:06:53 PDT 2010
Toby Corkindale <toby.corkindale at strategicdata.com.au> writes:
> On 01/07/10 14:21, Mike Bruins wrote:
>> I'm hoping for some pointers on a question relating to Devel::Cover -
>> Is there an easy way to tell Devel::Cover about a file ?
>> Perhaps there is an easier way to achieve the whole process?
> I solve this problem by having a test which simply finds every .pm file in the
> lib directory and attempts to load it with require_ok($filename);
I ♥ the Dist::Zilla "CompileTests" plugin, which is a nicer version of this
than I ever wrote for myself. You can just pilfer the test code out of the
DATA section at the end if you don't want to use Dist::Zilla though...
✣ Daniel Pittman ✉ daniel at rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
More information about the Melbourne-pm