in reply to Passing Dynamic Value to Test::More tests
An alternate approach is:
# compile time use Test::More; # run time my $test_count = 2; plan( tests => $test_count );
You can use this when you don't have tests that execute in BEGIN, CHECK, or INIT blocks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Passing Dynamic Value to Test::More tests
by xdg (Monsignor) on Jan 19, 2006 at 12:10 UTC |
In Section
Seekers of Perl Wisdom