Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Getting user input during module installation

by nysus (Parson)
on Feb 01, 2019 at 13:49 UTC ( [id://1229227]=note: print w/replies, xml ) Need Help??


in reply to Getting user input during module installation

I'm leaning toward building a simulation mechanism into the module that can simulate the output from the lastpass cli from a text file. Seems like a bit of work but probably the best way to go.

$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

  • Comment on Re: Getting user input during module installation

Replies are listed 'Best First'.
Re^2: Getting user input during module installation
by hippo (Bishop) on Feb 01, 2019 at 15:12 UTC

    This is referred to in the literature as "mocking". See eg. Mock Test Cases.

Re^2: Getting user input during module installation
by nysus (Parson) on Feb 01, 2019 at 14:00 UTC

    And I'll have author tests that will use the real deal lastpass cli.

    $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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229227]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found