Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Outputting input prompt with prove

by 1nickt (Abbot)
on Aug 05, 2019 at 11:51 UTC ( #11103924=note: print w/replies, xml ) Need Help??


in reply to Outputting input prompt with prove

If you need a value for the test to run, obtain it with ExtUtils::MakeMaker::prompt when building the Makefile. If you are trying to test a program that itself has interactive prompting and you cannot or do not choose to mock it, try Test::Expect.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: Outputting input prompt with prove
by nysus (Vicar) on Aug 05, 2019 at 12:43 UTC

    That looks great. Thanks. I had seen the Expect module but wasn't sure how use it with prove.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11103924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2019-10-16 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?