On 11 Aug 2006, at 09:25, Ovid wrote:
After thinking about Daniel Risse's idea for a Test::Terminated
module, I've been thinking this is something which should be
incorporated directly in TAP. Plans become optional but the last
line of the TAP output MUST be something like:
tests finished
That won't catch iterative tests misbehaving but it will catch a
premature exit. In fact, if you have a bunch of cleanup code which
fails *after* your last test is run (clean up temp files and so on)
and those exit incorrectly, you catch that, too.
If we think about TAP - and ignore the Test::Builder implementation -
how is this different from the current no_plan 1..N footer?
Is what we lack in the current implementation:
* a way to make the presence of that footer a manual, rather than an
automatic, task
* a bug-fix so T::H reports a test failure if the footer is absent
?
Adrian