TAP version 12
From Test Anything Protocol
Contents |
[edit] TAP Version 12
- Status: DRAFT
- Date: 2008-Apr-10
[edit] Abstract
This is a formalization of the TAP version 12 spec. It is put in writing here to formalize the format for TAP v12 producers and parsers.
[edit] Example TAP stream
1..2
ok 1 Loading worked
not ok 2 Saving failed
A TAP stream consists of a TAP plan, and exactly as many TAP statements as the plan says. Any more of fewer statements is to be considered a "plan failure".
[edit] Plan
The plan line starts with 1.. bound to the first character of either the first or the last line of the TAP stream. A plan at the end of the stream is called a deferred plan.
After the opening token there should be a second integer token. The value should be zero or bigger.
A plan of 1..0 is an implicit SKIP directive for the entire stream.
[edit] Statements
A TAP statement starts with either "ok" or "not ok", bound to the start of the line.

