in reply to Interactivity in tests - done correctly?
On the issue of prompting under test conditions:
If you use ExtUtils::MakeMaker to build your module you can import "prompt" http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.48/lib/ExtUtils/MakeMaker.pm#Other_Handy_Functions:
use ExtUtils::MakeMaker 5.16, qw(prompt);
and as far as I am aware the prompt returns the default if no stdin or running in an automated system - like smoking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interactivity in tests - done correctly?
by Anonymous Monk on Jan 22, 2009 at 14:35 UTC | |
by mje (Curate) on Jan 22, 2009 at 16:20 UTC | |
|
Re^2: Interactivity in tests - done correctly?
by Sandy (Curate) on Jan 22, 2009 at 19:40 UTC | |
by mje (Curate) on Jan 23, 2009 at 10:37 UTC | |
|
Re^2: Interactivity in tests - done correctly?
by tirwhan (Abbot) on Jan 22, 2009 at 20:28 UTC | |
by Anonymous Monk on Jan 23, 2009 at 07:31 UTC |