On Mon, Feb 21, 2005 at 08:31:43PM -0600, Andy Lester wrote:
> >was expected. I propose to fix this by allowing, in place of a plan at
> >the beginning, something like the line "ends with plan".
>
> In effect, finding
>
> ok 1
>
> as the first line means "ends with plan".
I think that's not mentioned anywhere, the current version does not numbered
tests mean a plan is required. So how about
1..10
means you plan on running 10 tests. This is a safeguard in case your test
file dies silently in the middle of its run.
If your tests are numbered then a plan is mandatory. In certain instances a
test file may not know how many test points it will ultimately be running.
In this case the plan can be the last non-diagnostic line in the output.
If your tests are not numbered the plan is optional but if there is a plan
before the test points it must be the first non-diagnostic line output by
the test file.
F