Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

App::Yath::Plugin::Cover turns off $ENV{TEST_ACTIVE} and co #241

Closed rabbiveesh closed 2 years ago

rabbiveesh commented 2 years ago

You can see this in action by running the t2/vars.t test from the test suite with the --cover-files options set.

I looked around and I'm not entirely sure what the problem is. My guess is that the plugin loads Test2::API before yath cleans up the environment, and therefore the next time Test2::API is called, it doesn't set the ENV vars again.