[tap-l] TAP producer output after a Bail out!
andy at hexten.net
Fri Mar 13 12:48:34 GMT 2009
On 13 Mar 2009, at 12:07, Nick Wallis wrote:
> Once a TAP producer has declared a Bail out! what is valid in the TAP
> after the Bail out declaration?
> - Test results (ok/not ok)?
> - Skip directives?
> - Todos?
> - More comments/Diagnostics?
> - Plan? Either at the beginning of the test or the end? Does this
> the Parser to recognise that it is now in another test?
> Can the producer just write everything it is asked and rely on the TAP
> Parser ignoring the output?
Here's what we say in the draft IETF spec:
> A Bail-Out line indicates that something has gone wrong with the
> test suite such that the results are compromised. The parser should
> ignore the rest of the stream and if possible kill test. It must not
> run any more tests in the suite.
Test::Harness prints a message and dies.
So basically all bets are off after Bail out. It's OK to output
anything or nothing - but it'll be ignored.
Test::Harness doesn't attempt to kill the test that it's running -
probably because it's better to let the test clean up for itself.
Andy Armstrong, Hexten
More information about the tap-l