Hey,
On Jan 28, 2009, at 5:19 PM, Ovid wrote:
That being said, 'not ok - test exited prematurely' is not terribly
structured and doesn't necessarily let an advanced TAP consumer
present this information any better.
As I understand it, the idea behind the final 'not ok' isn't as an
additionally failed test, but as a way of forcing the plan to fail.
That'll work as long as you don't have 'N' tests, and exactly 'N-1'
tests finish before the suite exists prematurely - in which case we
*still* tell the user something went wrong, but now you can't tell it
apart from a single, failed test.
As an example, someone writing a test runner GUI could have standard
green/red pass/fail lines, but maybe have flashing or striped red
lines for premature exits, letting the programmer prioritize what he/
she needs to deal with.
How would such a UI handle situations where all the tests pass, but
the plan fails (too many tests, too few tests or a missing plan)? If
those become flashing/stripped lines as well, then the current spec
works as written. If not, we should fix this up.
cheers,
Gaurav