Test2::Require::Internet - Skip tests if there is no internet access
version 0.12
use Test2::V0; use Test2::Require::Internet; use HTTP::Tiny; # we are safe to use the internets ok(HTTP::Tiny->get('http://www.example.com')->{success}); done_testing;
This test requirement will skip your test if either
NO_NETWORK_TESTING
is set to a true valueThis module uses the standard Test2::Require interface. Only TCP checks can be made at the moment. Other protocols/methods may be added later.
This module provides similar functionality but does not use Test::Builder or Test2::API.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2018-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.