in reply to Re: ExtUtils::MakeMaker : delcare a binary dependency
in thread ExtUtils::MakeMaker : delcare a binary dependency

Thanks Corion. So all I can do is *for each* of my test files to first check if chrome is available (via your helper, e.g. https://metacpan.org/release/CORION/WWW-Mechanize-Chrome-0.71/source/t/helper.pm#L21) and skip all tests in that test file gracefully, so that the testers think that tests have been passed, albeit with a stderr message for the real users. Correct?

  • Comment on Re^2: ExtUtils::MakeMaker : delcare a binary dependency

Replies are listed 'Best First'.
Re^3: ExtUtils::MakeMaker : delcare a binary dependency
by Corion (Patriarch) on Aug 22, 2023 at 08:37 UTC

    That is how I do it, but it may also make sense to simply skip the test using something like this:

    use Test::More; if( chrome_is_unavailable ) { plan skip_all => "Chrome / chromium not found/installed, skipping +test."; exit 0; }; plan tests => $test_count; ... done_testing();

      got it thanks