On 7/20/06, Michael G Schwern <[EMAIL PROTECTED]> wrote:
On 7/20/06, Gabor Szabo <[EMAIL PROTECTED]> wrote:
> On the other hand I can count them during the test and can tell
> Test::More that I was actually expecting $n tests.

This is exactly how no_plan works.

    use Test::More 'no_plan';

Test::Builder counts up your tests and spits out the plan at the end.

ok 1
ok 2
1..2

The point Gabor was interested in was to declare the plan *at the
end*, which should be validated against Test::Builder count. The test
would succeed if there was a match, or fail otherwise.

It would be something different, like

      use Test::More tests => 'defer';

and then

      plan past_tests => $n;

Reply via email to