1use Test2::Bundle::Extended -target => 'Test2::Require::NonInteractiveTesting';
2
3{
4    local %ENV = %ENV;
5    $ENV{NONINTERACTIVE_TESTING} = 0;
6    is($CLASS->skip(), 'NonInteractive test, set the $NONINTERACTIVE_TESTING environment variable to run it', "will skip");
7
8    $ENV{NONINTERACTIVE_TESTING} = 1;
9    is($CLASS->skip(), undef, "will not skip");
10}
11
12done_testing;
13