Debian Codegraph @

t/integration/tapsubtest.t

raw
1 use Test2::V0;
2
3 use App::Yath::Tester qw/yath/;
4
5 my $dir = __FILE__;
6 $dir =~ s{\.t$}{}g;
7 $dir =~ s{^\./}{};
8
9 yath(
10 command => 'test',
11 args => [$dir, '--ext=tx', '-v'],
12 exit => 0,
13 test => sub {
14 my $todo = todo "FIXME #216";
15 my $out = shift;
16
17 chomp(my $want = <<' EOT');
18 [ PASS ] job 1 +~buffered
19 [ PASS ] job 1 + buffered ok
20 [ PLAN ] job 1 | Expected assertions: 1
21 job 1 ^
22 [ PLAN ] job 1 Expected assertions: 1
23 EOT
24
25 like($out->{output}, qr{\Q$want\E}, "Got the desired output");
26 },
27 );
28
29 done_testing;