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.
Makefile fun with Test::Inline 0 Comments More | Login | Reply /