in reply to Installing Tests

Additional issue.

Some tests require user input. When you're testing one by one that isn't a big deal. When you're repeatedly testing all of your modules, that is going to get very annoying, very quickly.

At least some thought needs to be put into this. Even if it is as simple as, "Make it possible to uninstall an annoying test."

Replies are listed 'Best First'.
Re^2: Installing Tests
by Ovid (Cardinal) on Sep 11, 2006 at 14:37 UTC

    I've discovered this problem in my attempt to test all of the CPAN. I wound up using $SIG{ALRM} and simply skip tests where I run into this issue. It's not perfect, but it's a workable hack for me. Is this portable?

    Cheers,
    Ovid

    New address of my CGI Course.

      In Vanilla/Strawberry Perl builds, I found that setting $ENV{PERL_MM_USE_DEFAULT} and $ENV{AUTOMATED_TESTING} to true cuts out many of those annoying prompts for user input.

      -xdg

      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      I'd expect this to be portable, but I wouldn't be surprised if some tests still prompt for user input in a way that this doesn't catch.