Best practice for unit tests that rely on internet access?

Mark Fowler mark at twoshortplanks.com
Tue May 3 16:31:02 BST 2011


On Tue, May 3, 2011 at 2:09 PM, David Cantrell <david at cantrell.org.uk> wrote:

> Interactivity is fine, provided it has sensible defaults.

It's worth knowing about the ExtUtils::MakeMaker::prompt function
which can be used to ask simple interactive questions.  In particular
this will allow you to specify a default (e.g. don't connect to the
network) and have this automatically used if STDIN isn't connected to
anything or the PERL_MM_USE_DEFAULT env var is set to true.

Mark.


More information about the london.pm mailing list