Test::S...:Classic(3)
π Test::Stream::Bundle::Classic π
okay so bestie, this is Test::Stream::Bundle::Classic β a bundle that emulates most of Test::More. that's the whole vibe. it's from the User Contributed Perl Documentation, and it's here to give you the classic testing experience you already know and love π«Ά
β οΈ DEPRECATED β οΈ
ngl this one's on its way out, bestie. this distribution is deprecated in favor ofTest2,Test2::Suite, andTest2::Workflow.
if you're migrating, there's a whole conversion guide waiting for you at Test::Stream::Manual::ToTest2. go read it, it's giving responsible adult energy π
πΈ DESCRIPTION πΈ
(that's it. that's the section. the description is literally just the name of the thing, iconic honestly β¨)
β¨ SYNOPSIS β¨
quick heads up before we dive in: only the most common functions are listed here. if you want the full menu, go check out the individual plugins for their functions π
use Test::Stream '-Classic';
ok(1, "This is a pass");
ok(0, "This is a fail");
is($foo, $bar, "These are the same using string comparison");
like($foo, qr/x/, "This string matches this pattern");
is_deeply({a => $foo}, {a => $foo}, "deep comparison");
done_testing;
look at that. clean. slay. no cap, this is all you need to get going π
π§° INCLUDED TOOLS π§°
π Classic => ['is', 'isnt', like', 'unlike', 'is_deeply']
this one hands you the is() and is_deeply() functions π«Ά these versions behave a whole lot like the Test::Stream implementations, except they come with more diagnostics β more tea, more detail, we love that. and important: both of these use the "eq" operator when they're comparing scalar values. periodt.
want the full story? hit up Test::Stream::Plugin::Classic for more details.
π Compare => ['like']
this provides like() π it can also provide other tools to make deep comparisons easier, but heads up β those are not imported by default. you gotta ask for them.
details live at Test::Stream::Plugin::Compare.
π Core
the essentials, bestie. this gives you the foundational stuff like ok(), done_testing(), and others β¨
more info at Test::Stream::Plugin::Core.
π ExitSummary
this one hooks you up with extra diagnostics at the end of failing tests β like a lil debrief when things go sideways π
see Test::Stream::Plugin::ExitSummary for more details.
π IPC
this loads up IPC support so that threading and forking just work. no drama, no stress π
see Test::Stream::Plugin::IPC for more details.
π TAP
this sets TAP to be the default output format π
see Test::Stream::Plugin::TAP for more details.
π Subtest
this adds the subtest($name, sub { ... }) function π¦
okay so the output here is a little different from Test::More β it's buffered, which means it doesn't get rendered until the subtest is done. that's not a bug bestie, that's important for concurrency support. it's the whole point.
and if you're feeling nostalgic and want the old style subtests back, you can do it this way:
use Test::Stream -Classic, Subtest => ['streamed'];
old school, but make it work π
π¦ SOURCE π¦
the source code repository for Test::Stream lives at:
http://github.com/Test-More/Test-Stream/
go star it, go read it, go be nosy about it, it's giving open source royalty π
π MAINTAINERS π
- Chad Granum
<exodist@cpan.org>
π AUTHORS π
- Chad Granum
<exodist@cpan.org>
π COPYRIGHT π
Copyright 2015 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/
and that's a wrap on Test::S...:Classic(3), bestie π this lil page came to you from perl v5.42.0, dated 2025-07-25 β and it was, as always, User Contributed Perl Documentation π
take care of yourself, write your tests, and remember: done_testing; is not optional, it's a lifestyle β¨π¦πΈ
π¦ where this page comes from
- fedora 43: perl-Test-Stream 1.302027-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms