File: NonInteractiveTesting.t

package info (click to toggle)
libtest2-suite-perl 0.000163-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,768 kB
  • sloc: perl: 7,485; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
use Test2::Bundle::Extended -target => 'Test2::Require::NonInteractiveTesting';

{
    local %ENV = %ENV;
    $ENV{NONINTERACTIVE_TESTING} = 0;
    is($CLASS->skip(), 'NonInteractive test, set the $NONINTERACTIVE_TESTING environment variable to run it', "will skip");

    $ENV{NONINTERACTIVE_TESTING} = 1;
    is($CLASS->skip(), undef, "will not skip");
}

done_testing;