in reply to Counting test cases
When you update the test_sub1 subroutine to include or remove a test, just change the number in the attribute to the sub. Very convenient! You can also do this.package MyTestModule; use base qw/ Test::Class /; use Test::More; sub test_sub1 : Test(2) { my $self = shift; ok(....); ok(....) }
sub test_sub2 : Test(no_plan) { my $self = shift; ... ... }
|
|---|