in reply to Detect is my test run by cpantesters

From the CPAN Authors FAQ:

"Can I tell if my module is being tested by an automated client (a.k.a. 'smoker')?"

Automated smoke testers should set $ENV{AUTOMATED_TESTING} to a true value. This allows authors to skip certain tests (or include certain tests) when the results are not being monitored by a human being.

One could even go so far as to halt building and testing a distribution under automated testing by exiting with zero at the top of the Makefile.PL or Build.PL file:

exit 0 if $ENV{AUTOMATED_TESTING};

Hope this helps!

Replies are listed 'Best First'.
Re^2: Detect is my test run by cpantesters
by OlegG (Monk) on Aug 16, 2014 at 16:17 UTC
    Thanks! This is exactly what I am looking for

      It might also be worth checking $ENV{EXTENDED_TESTING} - this is the recommended environment variable that people are supposed to set to opt-in to running additional test cases.

      See also: Lancaster Consensus.