Best practice for unit tests that rely on internet access?

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

On Tue, May 3, 2011 at 2:09 PM, David Cantrell <david at> 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.


More information about the mailing list