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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Just for the sake of mentioning it... (Score:1)
Along the lines of AUTOMATED_TESTING... (Score:1)
$ENV{AUTOMATED_TESTING}is in common use to help tests change behavior when being run by a smoke testing system.I've seen (and have adopted myself) the use of
$ENV{AUTHOR_TESTING}for the purpose you describe.When existing control structures are insufficient (Score:1)
GOTOis sometimes the only way to express control flow consisely.Re:When existing control structures are insufficie (Score:1)
The flag you are after... (Score:1)
I use this for my developer tests as well, since it's never a bad idea to have the other CPAN testers rerun your developer tests in other contexts.
The other thing this can allow you to do is avoid the eval stuff and make sure you have the modules when you need them.
in your Makefile.PL (assuming Module::Install in my case).
use strict;
use inc::Module::Install;
name 'Foo';
all_from 'lib/Foo.pm';
requires 'File::Spec' => 0;
build_requires 'Test::More' =>