in reply to Outputting input prompt with prove

You're right that prove doesn't handle that situation very well (I tried ExtUtils::MakeMaker's prompt but that had the same issue), but then again, it's not really meant to, since tests should generally be able to run non-interactively. It sounds more like an XY Problem to me, could you explain what you need this for?

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

    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

      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.