There's https://metacpan.org/pod/Test::Internet and
https://metacpan.org/pod/Test::RequiresInternet .

I do recommend restricting those AUTOMATED_TESTING or AUTHOR_TESTING.

There's also the core-only approach like is used in HTTP::Tiny:
https://metacpan.org/source/DAGOLDEN/HTTP-Tiny-0.070/t/200_live.t

David


On Sun, Nov 12, 2017 at 9:59 AM, James E Keenan <jkee...@pobox.com> wrote:

> Is there any code which is considered "best practice" for "skip_all unless
> I have an Internet connection"?
>
> For the first time I want to write a library whose tests will benefit from
> connection to an FTP server.  If there is some code that I could just drop
> in for situations where the test suite is run offline, that would be
> helpful.
>
> Thank you very much.
> Jim Keenan
>



-- 
David Golden <x...@xdg.me> Twitter/IRC/GitHub: @xdg

Reply via email to