Test::S...:Classic(3)

πŸ“¦
version 1.302027 Β· 2 versions
, in fedora 43

πŸ’– 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 of Test2, Test2::Suite, and Test2::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 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