in reply to Re: How to make a module aware it is being tested?
in thread How to make a module aware it is being tested?

Seems like it would be a little more straightforward to test for one of the testing package's variables, like
if ($Test::VERSION)

Caution: Contents may have been coded under pressure.