Test2:...Stream(3pm)
β¨ Test2:...Stream(3pm) β¨
ok so bestie, you found a Perl doc, and ngl this one is for the machines, not for us humans π
it's Test2::Formatter::Stream, part of the User Contributed Perl Documentation crew, and we're gonna vibe through it together π«Ά
π¦ NAME π¦
Test2::Formatter::Stream β it's a Test2 Formatter that just... directly writes events. no cap, that's the whole job π
πΈ DESCRIPTION πΈ
okay so here's the tea, bestie π this formatter writes all test2 events to event files β one file per process/thread β instead of yeeting them at STDERR/STDOUT like a normal formatter would. instead of, okay? not "in addition to," babes, we are switching it up.
and the way it keeps things in check? every single time an event gets written, it also drops synchronization messages onto STDERR/STDOUT π¨ and from all that data, the test output can be properly reconstructed in order with STDERR/STDOUT, and the events get mostly synced so they show up in the correct order β¨ like, it's giving choreography, it's giving perfectly timed group chat replies, it's iconic.
now the real talk π this formatter is not usually useful to humans. like, if you're a person reading this hoping for pretty output β no babes, this one isn't for you π it's used by Test2::Harness when possible, and the whole reason is to prevent the loss of data that normally occurs when TAP is used. protecting the data, main character energy, we love to see it π
π SYNOPSIS π
if you really want your test to output this (and bestie, "really" is doing a lot of work in that sentence), then:
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 π so easy. slay.
π₯ SOURCE π₯
the source code repo for Test2-Harness lives at http://github.com/Test-More/Test2-Harness/ β go peek, go star, go be nosy, iykyk π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
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/
fr fr, that's the whole page β every flag-free, option-free detail preserved, because the facts stay iconic even when the vibe is doing the most π§
and that's a wrap, bestie! this one shipped as perl v5.40.1, dated 2026-05-10, under that same Test2:...Stream(3pm) name we folded in right at the top π mwah, periodt π
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms