in reply to Re: Outputting input prompt with prove
in thread Outputting input prompt with prove

It's really just something that has annoyed me for a while and I'd like to see if there is a way to print the prompt.

The current project I'm working on shows sample data from a spreadsheet column and asks the user which col headers to user. It's not really a big deal.

$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^2: Outputting input prompt with prove

Replies are listed 'Best First'.
Re^3: Outputting input prompt with prove
by haukex (Archbishop) on Aug 05, 2019 at 12:57 UTC
    The current project I'm working on shows sample data from a spreadsheet column and asks the user which col headers to user.

    Well, that wouldn't really make sense in an automated test, so I guess it's only for those people who run the tests manually in their console? In that case, you could provide some other way to pass that parameter in - just one example of many being an environment variable, and in your test script, only run that code when that environment variable is set. Another thing I like to do in my test scripts is use Test::More's diag and note appropriately, so that the output is not cluttered when running prove without -v.