vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
The Test::More POD says Before anything else, you need a testing plan. This basically declares how many tests your script is going to run to protect against premature failure..
use Test::More tests => 14;There are rare cases when you will not know beforehand how many tests your script is going to run. In this case, you can declare that you have no plan.
use Test::More qw(no_plan);But premature failure can be easily seen when there are no results printed at the end of a test run. It just doesn't seem that helpful.
So I have 2 questions: 1. What is the reasoning behind requiring a test plan by default? 2. Has anyone found this a useful and time saving feature in the long run?
|
|---|