in reply to self testing code Test::More

Try something like
my $TESTING = 1; ... if ( $TESTING ) { require Test::More; import Test::More qw(no_plan); Run_Test(...); }