NAME

Test::Builder2::Streamer::TAP - A streamer for TAP output

DESCRIPTION

This is a streamer specific to the needs of the TAP formatter. It is a subclass of Test::Builder2::Streamer::Print.

Basically, it adds a destination for errors.

Destinations

out

Where TAP output goes. This connects to $streamer->output_fh.

err

Where ad-hoc user visible comments go. The unstructured "diagnostics".

Attributes

error_fh

The filehandle for the err destination.

Defaults to a copy of STDERR.

stderr

Stores a duplicated copy of STDERR. Handy for resetting the error_fh().