in reply to Most painless way to update the number of tests run?
G'day nysus,
I often use the plan() function of Test::More like this:
use Test::More; my @tests = ( [ @test_input_args_1, $expected_output_1 ], ... [ @test_input_args_N, $expected_output_N ], ); plan tests => scalar @tests; # run tests here
Here's three examples from posts I've made in recent weeks:
The Test::More doco gives this example:
plan tests => keys %Stuff * 3;
— Ken
|
|---|