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 (Archbishop) 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