Just hit this snag with Test::NoWarnings. When you include it in a Makefile.PL 
as a dependency you get

[EMAIL PROTECTED]:> perl Makefile.PL
Writing Makefile for Test::Deep
You tried to run a test without a plan!  Gotta have a plan. at 
/usr/lib/perl5/5.8.0/Test/NoWarnings.pm line 99
END failed--call queue aborted.
# Looks like your test died before it could output anything.

It loads the module so it can see $VERSION, then it does lots of MakeMaker 
stuff and finally END block test kicks in and runs a test when we're not 
really testing at all.

I thought about checking whether a plan had been made and if not then skipping 
the test but I don't like that.

At the moment I'm thinking of making a Test::NoWarnings::Version module to 
carry the $VERSION, then that would be referenced in Makefile.PL but that's 
still kinda ugly.

Any cleverer suggestions?

F

Reply via email to