Test2::Require::Internet - Skip tests if there is no internet access
version 0.09
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
This 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 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.
To install Test2::Tools::HTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Tools::HTTP
CPAN shell
perl -MCPAN -e shell install Test2::Tools::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.