Lines Matching defs:subtest
35 subtest
755 =item B<subtest>
757 subtest $name => \&code, @args;
759 C<subtest()> runs the &code as its own little test with its own plan and
761 result of the whole subtest to determine if its ok or not ok.
769 subtest 'An example subtest' => sub {
772 pass("This is a subtest");
782 # Subtest: An example subtest
784 ok 1 - This is a subtest
786 ok 2 - An example subtest
789 A subtest may call C<skip_all>. No tests will be run, but the subtest is
792 subtest 'skippy' => sub {
797 Returns true if the subtest passed, false otherwise.
800 implicit C<done_testing()> to the end of your subtest. The following two
803 subtest 'subtest with implicit done_testing()', sub {
809 subtest 'subtest with explicit done_testing()', sub {
816 Extra arguments given to C<subtest> are passed to the callback. For example:
824 subtest "testing range $range", \&my_subtest, $range;
829 sub subtest {
831 return $tb->subtest(@_);