Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document (Str, Code) and (Pair) subtest's multis
  • Loading branch information
zoffixznet committed Jul 19, 2016
1 parent bf0e015 commit 4772e6b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion doc/Language/testing.pod6
Expand Up @@ -66,7 +66,7 @@ the subtest.
If a C<plan> is used, it is not necessary to denote the end of testing with
C<done-testing>.
s
=item X<done-testing>
Specify that testing has finished. Use this function when you do not as yet
Expand Down Expand Up @@ -459,6 +459,23 @@ subtest {
}, "Check Great Uncle Bulgaria";
=end code
You can also place description as the first positional argument, or use a C<Pair> with description as key and subtest's code
as value. This can be useful for subtests with large bodies.
=begin code
subtest 'A bunch of tests', {
plan 42;
...
...
}
subtest 'Another bunch of tests' => {
plan 72;
...
...
}
=end code
=head1 Skipping tests
Sometimes tests just aren't ready to be run, for instance a feature might
Expand Down

0 comments on commit 4772e6b

Please sign in to comment.