in reply to Re: Replace 'no_plan' with fixed number using Test::More when output is random
in thread Replace 'no_plan' with fixed number using Test::More when output is random

chakram88++. Indeed, planning late is better than not planning. This an also be useful when you have a test that you're building dynamically in other ways (e.g., you have one kind of test, but you want to keep adding more cases to it).
use Test::More; my @items = qw(Foo Bar Baz); # new plugins here, no change to test pla +n plan tests => scalar @items; foreach my $plugin (@items) { use_ok "My::Module::Plugin::$plugin"; }
  • Comment on Re^2: Replace 'no_plan' with fixed number using Test::More when output is random
  • Download Code