Subject: | Feature request: Add NO_NETWORK_TESTING support |
There's a growing use of the env-var NO_NETWORK_TESTING to communicate "hey, the internet may or may not exist, but you don't even have permission to check" to tests.
Most people are using https://metacpan.org/source/MALLEN/Test-RequiresInternet-0.05/lib/Test/RequiresInternet.pm for this goal, but a simple patch could extend this feature to existing users of LWP::Online https://metacpan.org/requires/distribution/LWP-Online?sort=[[2,1]]&size=500
At least, for the "skip_all" case its straight forward, for the "manually call online()", not sure.
Its *probably* safe to put the ENV check inside "online", but that has a limitation:
- skip_all works in tests and tests only, and consumers expect it to work in tests, and so testing related ENV vars are applicable.
- *outside* tests, the relevance of NO_NETWORK_TESTING becomes less clear.
Subject: | env_no_network.patch |