use Test::More tests => 23; use Test::Differences; use Test::Exception; #### package My::Tests; use Test::Custom qw( Test::More Test::Differences Test::Exception ); 1; #### package My::Tests; use Test::Custom qw( Test::More Test::Differences ), 'Test::SomethingOrOther' => [ 'bulges_ok' ]; Test::Custom->add('Test::NoWarnings') if $some_condition; 1; #### eval <<"END"; package $calling_package; use Test::More @test_more_imports; use Test::Exception @test_exception_imports; use Test::Differences @test_differences_imports; END if ( my $error = $@ ) { ... }