Skip Menu |

This queue is for tickets about the Test-Modern CPAN distribution.

Report information
The Basics
Id: 99376
Status: new
Priority: 0/
Queue: Test-Modern

Owner: Nobody in particular
Requestors: KENTNL [...]

Bug Information
Severity: (no value)
Broken in: 0.013
Fixed in: (no value)

Subject: ENV flag documented wrong

Documentation says the ENV control variable for `Test::Modern -internet` is "NO_NETWORK_TESTS"

However, use as documented results in network-based tests operating anyway. ( see attached )

Inspecting the file suggests the ENV variable has the last token of "TESTING" not "TESTS"

And subsequently using NO_NETWORK_TESTING instead resolves this problem.

As to whether the implementation or documentation is incorrect ... that's your choice =)


Comparing the diff of the version it was introduced in, shows its also "TESTS" in the changelog.


text/x-perl 139b
#!/usr/bin/env perl BEGIN { $ENV{NO_NETWORK_TESTS} = 1; }; use Test::Modern -internet; fail("This should not execute"); done_testing;

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to