http://www.perlmonks.org?node_id=11103924


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.