encyclopegia.org

Test Anything Protocol

The Test Anything Protocol (TAP) is a protocol for communicating between test logic, called a TAP producer, and a test harness in a language-agnostic way.[src] Originally developed for unit testing of the Perl interpreter in 1987, producers and parsers are now available for many development platforms.[src]

The Test Anything Protocol (TAP) is a protocol for communicating between test logic, called a TAP producer, and a test harness in a language-agnostic way.[src] Originally developed for unit testing of the Perl interpreter in 1987, producers and parsers are now available for many development platforms.[src] ==History== TAP was created for the first version of the Perl programming language (released in 1987), as part of Perl's core test harness ( ).[src] The Test::Harness module was written by Tim Bunce and Andreas König to allow Perl module authors to take advantage of TAP.[src] It became the de facto standard for Perl testing.[src] Development of TAP, including standardization of the protocol, writing of test producers and consumers, and evangelizing the language is coordinated at the TestAnything website.[src] As a protocol which is agnostic of programming language, TAP unit testing libraries expanded beyond their Perl roots and have been developed for various languages and systems such as PostgreSQL, MySQL, JavaScript and other implementations listed on the project site.[src] A TAP C library is included as part of the FreeBSD Unix distribution and is used in the system's regression test suite.[src] ==Specification== A formal specification for this protocol exists in the TAP::Spec::Parser and TAP::Parser::Grammar modules.[src] The behavior of the Test::Harness module is the de facto TAP standard implementation, along with a writeup of the specification on TestAnything.org.[src] A project to produce an IETF standard for TAP was initiated in August 2008, at YAPC::Europe 2008.[src] ==Examples== Here's an example of TAP's general format: 1..48 ok 1 Description # Directive Diagnostic ....[src] ok 47 Description ok 48 Description For example, a test file's output might look like: 1..4 ok 1 - Input file opened not ok 2 - First line of the input valid.[src] More output from test 2.[src] There can be arbitrary number of lines for any output so long as there is at least some kind of whitespace at beginning of line.[src] ok 3 - Read the rest of the file TAP meta information not ok 4 - Summarized correctly # TODO: not written yet ==See also== ==References== ==External links==[src]

18 sentences · 18 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Test Anything Protocol." encyclopegia.org, 2026, https://encyclopegia.org/wiki/test-anything-protocol. Accessed 29 November 2026.

Chicago

"Test Anything Protocol." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/test-anything-protocol.

APA

encyclopegia.org. (2026). Test Anything Protocol. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/test-anything-protocol

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date1987Wikipedia
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1355331764 · 0.5 · snapshot enwiki-001355331764

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.