1nickt has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, with the following test file how do I get prove to report 6 (assertions) rather than 2 (subtests)?
use Test::More; subtest foo => sub { ok 1; ok 2; ok 3; }; subtest bar => sub { ok 4; ok 5; ok 6; }; done_testing;
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Count assertions
by choroba (Cardinal) on Mar 10, 2026 at 11:01 UTC | |
by 1nickt (Canon) on Mar 12, 2026 at 09:08 UTC | |
by choroba (Cardinal) on Mar 12, 2026 at 12:58 UTC | |
|
Re: Count assertions
by hippo (Archbishop) on Mar 12, 2026 at 10:34 UTC | |
|
Re: Count assertions
by tobyink (Canon) on Mar 25, 2026 at 16:18 UTC |