Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

thinc (3788)

thinc
  (email not shown publicly)

Journal of thinc (3788)

Tuesday July 20, 2004
03:47 PM

Makefile fun with Test::Inline

[ #19960 ]

So I was playing around with Test::Inline, and wanted to integrate it with the little Makefile I use to ease my development.

Finally figured out this:

pod_tests: lib/*.pm
        $(foreach file,$?,pod2test $(file) t/$(notdir $(file)).t ;)
 
test: pod_tests
        perl -I$(LIB) -MTest::Harness -e 'runtests(@ARGV)' t/*.t

This generates the inline tests and saves them as t/Module.pm.t everytime I run make test, which works great for what I need.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.