Skip to content

Top-level skip_all doesn't work #12

@JRaspass

Description

@JRaspass
use Test2::V0;
use Test2::Tools::xUnit;

skip_all 'Because reasons';

subtest foo => sub { fail };

done_testing;
$ prove -v t/bug.t 
t/bug.t .. 
# Seeded srand with seed '20230511' from local date.
1..0 # SKIP Because reasons
# IPC is waiting for children to finish...
skipped: Because reasons
Files=1, Tests=0,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.07 cusr  0.00 csys =  0.09 CPU)
Result: NOTESTS
use Test2::V0;
use Test2::Tools::xUnit;

skip_all 'Because reasons';

sub foo : Test { fail }

done_testing;
$ prove -v t/bug.t 
t/bug.t .. 
# Seeded srand with seed '20230511' from local date.
1..0 # SKIP Because reasons
# IPC is waiting for children to finish...
not ok 1 - foo {
    # IPC is waiting for children to finish...
    not ok 1
    1..1
}
    # Failed test at /home/jraspass/perl5/perlbrew/perls/perl-5.37.9/lib/site_perl/5.37.9/Test2/Tools/Basic.pm line 34.

# Failed test 'foo'
# at t/bug.t line 2.
skipped: Because reasons

Test Summary Report
-------------------
t/bug.t (Wstat: 256 (exited 1) Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 0 tests but ran 1.
Files=1, Tests=1,  1 wallclock secs ( 0.01 usr  0.01 sys +  0.08 cusr  0.00 csys =  0.10 CPU)
Result: FAIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions