https://github.com/dnmfarrell/test2-tools-skipuntil
https://github.com/dnmfarrell/test2-tools-skipuntil
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnmfarrell/test2-tools-skipuntil
- Owner: dnmfarrell
- Created: 2018-05-12T19:15:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T18:26:44.000Z (over 7 years ago)
- Last Synced: 2025-01-16T16:49:13.723Z (over 1 year ago)
- Language: Perl
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.pod
Awesome Lists containing this project
README
=head1 NAME
Test2::Tools::SkipUntil - skip tests until a date is reached
=head1 SYNOPSIS
use Test2::Bundle::More
use Test2::Tools::SkipUntil;
SKIP: {
skip_until "known fail see issue #213", '2018-06-01';
...
}
...
done_testing;
=head1 DESCRIPTION
Exports two functions for skipping tests until a datetime is reached. Dates are
evaluated in C. These might be useful when you have known exceptions
in your test suite which are temporary.
=head1 FUNCTIONS
=head2 skip_until ($why, $count, $datetime)
Skips all tests in a C block, registering C<$count> skipped tests until
C is greater than or equal to C<$datetime>. Just like with
L, C<$count> is
optional, and defaults to 1.
C<$datetime> must be a scalar in one of the following formats:
=over 4
=item *
YYYY-MM-DDTHH:MM:SS - e.g. "2017-05-01T13:24:58"
=item *
YYYY-MM-DD - e.g. "2017-05-01"
=back
=head2 skip_all_until ($why, $datetime)
Skips all tests by setting the test plan to zero, and exiting succesfully
unless C is greater than or equal to C<$datetime>. Behaves like
L.
See the L"skip_until ($why, $count, $datetime)"> for the accepted C<$datetime> formats.
=head1 SOURCE
The source code repository for Test2-Tools-SkipUntil can be found on L.
=head1 AUTHORS
David Farrell
=head1 COPYRIGHT
Copyright 2018 David Farrell
=head1 LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See L.
=cut