DOKK / manpages / debian 12 / libtest2-harness-perl / Test2::Formatter::Stream.3pm.en
Test2::Formatter::Stream(3pm) User Contributed Perl Documentation Test2::Formatter::Stream(3pm)

Test2::Formatter::Stream - Test2 Formatter that directly writes events.

This formatter writes all test2 events to event files (one per process/thread) instead of writing them to STDERR/STDOUT. It will output synchronization messages to STDERR/STDOUT every time an event is written. From this data the test output can be properly reconstructed in order with STDERR/STDOUT and events mostly synced so that they appear in the correct order.

This formatter is not usually useful to humans. This formatter is used by Test2::Harness when possible to prevent the loss of data that normally occurs when TAP is used.

If you really want your test to output this:

    use Test2::Formatter::Stream;
    use Test2::V0;
    ...

Otherwise just use App::Yath without the "--no-stream" argument and this formatter will be used when possible.

The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.

Copyright 2020 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/

2023-03-12 perl v5.36.0