On 2011.10.29 3:51 AM, Fergal Daly wrote:
> It seems like it's impossible then to declare a global plan in advance
> if you use subtests unless you go counting all the sub tests which is
> no fun,
Yes, that's a very good point.
use Test::More tests => 3;
subtest "first" => sub { ... };
subtest "second" => sub { ... };
subtest "three" => sub { ... };
The main count remains three no matter how the subtests change. I just use
done_testing() but for those who like to count tests, it is more convenient.
--
Don't try the paranormal until you know what's normal.
-- "Lords and Ladies" by Terry Prachett