perl - ExtUtils::MakeMaker conditional/prompt for live tests -


i can't figure out how extutils::makemaker prompt user asking if want run subset of tests in /t require live internet connection. possible?

in general, not want run such tests on end-user's system. can not rely on being reliable, if it's present. if want can use prompt helper function test section argument achieve if put networking tests in own directory:

use extutils::makemaker;  …  $network = prompt("do want run tests requiring network access [y/n]", "n") =~ /y/i;  writemakefile(     ...     test => {         tests => $network ? 't/*.t t/network/*.t' : 't/*.t'     } ); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -