Skip to content

Commit

Permalink
Merge pull request #927 from renormalist/test-more-skip
Browse files Browse the repository at this point in the history
Test::More skip() allows test name
  • Loading branch information
exodist authored Apr 25, 2024
2 parents 2de12db + 75ce659 commit 3643abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Test/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ use TODO. Read on.

## no critic (Subroutines::RequireFinalReturn)
sub skip {
my( $why, $how_many ) = @_;
my( $why, $how_many, $name ) = @_;
my $tb = Test::More->builder;

# If the plan is set, and is static, then skip needs a count. If the plan
Expand All @@ -1402,7 +1402,7 @@ sub skip {
}

for( 1 .. $how_many ) {
$tb->skip($why);
$tb->skip($why, $name);
}

no warnings 'exiting';
Expand Down

0 comments on commit 3643abe

Please sign in to comment.