On 31/12/06, Paul LeoNerd Evans <[EMAIL PROTECTED]> wrote:
On Sun, Dec 31, 2006 at 02:13:47AM +0000, Fergal Daly wrote:
> I think the code about should die comlaining about dies_ok() is
> unknown. So you need to do even more.
No it doesn't... This is one of those things about perl - code that
looks like a function call is never checked to see if the function
exists until runtime:
#!/usr/bin/perl
use warnings;
use strict;
print "Here I have started running now\n";
foobarsplot();
^-- won't complain until runtime.
That's what gave me the motivation to write B::LintSubs, by the way:
http://search.cpan.org/~pevans/B-LintSubs-0.02/
I just forgot that SKIP actually doesn't execute the code (I was
thinking it just marked the test results as to be ignored).
> Don't you get the same problem with any non-standard test module?
Yes; but Test::More seems to be installed as part of whatever the
testing core is on various things that automatically test my CPAN
modules. I note whenever I upload something, lots of machines around the
world manage to automatically test it. I use Test::More everywhere and
they can cope.
I use whatever test modules I feel like (for example I always use
Test::NoWarnings) and the same machines test my modules without
problems. The automatic testing tools install whatever deps are
necessary (assuming they're listed as deps in Makefile.PL). Are you
seeing brokenness or are you just expecting it?
F
> If you alread yhave some CPAN dependencies then adding another for
> testing is perfecctly reasonable. It would be nice if the various CPAN
> tools could understand the difference between a runtime dependecy and
> a test-time one though,
EU::MM can't, but I believe Module::Build can. That said, the consensus
on #perl/Freenode is that the latter isn't really ready yet, so just use
the former. Ho hum..
--
Paul "LeoNerd" Evans
[EMAIL PROTECTED]
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFl5upqRXzCRLr5iQRAh+xAKCL/rKxP/QmZc/4lxnFeQyDKxNEqACfZjoU
EODl67ZC0bW/jCJvmmUMGIw=
=1ffY
-----END PGP SIGNATURE-----