Am I a bad person if I use use Test::More qw(no_plan)
?
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 => 23;
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. (Try to avoid using this as it weakens your test.)
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 3 questions:
- What is the reasoning behind requiring a test plan by default?
- Has anyone found this a useful and time saving feature in the long run?
- Do other test suites for other languages support this kind of thing?