Introduction
The Test Anything Protocol is a plain text
way for tests to report results to a test harness. Reports saved to files are often
named .tap.
Structure
In TAP 14 the first line is TAP version 14. A plan line such as
1..4 states how many test points to expect. Each test point is a line
starting ok or not ok, optionally with a number, a
description, a TODO or SKIP directive and a YAML block of
diagnostics.
Not described
Known, not yet covered
- Reference: this page is a summary; subtests, escaping and earlier versions are not yet described on this site.
- Viewer: the site has no viewer for TAP reports.
Also used for
- Acorn Atom tape file – The programs of an Acorn Atom cassette: ATM files, each a 22-byte header and its data.
- Amstrad CPC tape file – The blocks an Amstrad CPC writes to cassette: header and data blocks, each with a length and a flag byte.
- Commodore 64 tape image – The length of every pulse on a C64, VIC-20, C16 or PET tape, after the text C64-TAPE-RAW.
- KC 85 / Z 9001 tape file (KC-TAP) – A tape file of the KC 85 and Z 9001 home computers: a signature, a header block and blocks of 128 bytes.
- Oric tape image – Oric-1 and Atmos tapes: a $16 leader, sync byte $24, a 9-byte header, name and data.
- SIMH tape image – The magnetic tape of the SIMH simulators: records framed by a 32-bit length at both ends, and tape marks.
- ZX Spectrum tape image – Spectrum tape blocks as plain bytes, each after a 2-byte length.
Links
Software
- Jenkins TAP plugin – reads TAP result files in Jenkins
Reference
- TAP version 14 specification – the protocol