Test::S...:Tester(3)

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

πŸ’– Test::Stream::Bundle::Tester πŸ’–

okay bestie, welcome to the Test::Stream::Bundle::Tester page β€” it's the bundle you reach for when you're testing your test tools (yes, tools for tools, we're going full inception here πŸŒ€). Perl doc, user contributed, and honestly? iconic.


😭 DEPRECATED 😭

ngl this one comes with a big sad disclaimer: this whole distribution is deprecated in favor of Test2, Test2::Suite, and Test2::Workflow.

πŸ’€ fr fr, it's on the way out. if you need to migrate, go read Test::Stream::Manual::ToTest2 β€” that's the conversion guide, it's got you.

✨ DESCRIPTION ✨

These are the plugins that come in clutch when you're testing test tools and plugins. It's giving interception and validation β€” like, tools for catching events and checking they're valid β€” plus every single export the Compare plugin gives you. all of them. no crumbs left. πŸ“


🌸 SYNOPSIS 🌸

use Test::Stream Core, -Tester;

is(
    intercept { ok(1, "pass") },
    array {
        event Ok => sub {
            call pass => T();
            call name => 'pass';
        };
        end;
    },
    "Intercepted an event"
);

done_testing;

look at that. intercept catches the event, array checks the shape of it, done_testing wraps us up. chef's kiss πŸ‘‘


πŸŽ€ INCLUDED PLUGINS AND BUNDLES πŸŽ€

πŸ’… Test::Stream::Plugin::Compare

Unlike the default bundle, every tool exported by the Compare plugin gets imported. the default bundle is stingy about it; this one is not. we're generous here. 🫢

πŸ¦‹ Test::Stream::Plugin::Intercept

Provides the intercept { ... } function β€” this is the one you use to intercept events. main character of the whole bundle, honestly.

🌈 Test::Stream::Plugin::Grab

An alternative way to intercept events β€” and here's the cute part: this one does not add stack frames. so if your stack trace was looking a lil messy, this is the move. ✨

⭐ Test::Stream::Plugin::LoadPlugin

Lets you dynamically load plugins whenever you need them. on demand, like a lil plugin vending machine. 🧚

πŸ’œ Test::Stream::Plugin::Context

Provides the context() function. short, sweet, does the thing.


πŸ”₯ SOURCE πŸ”₯

The source code repository for Test::Stream lives at http://github.com/Test-More/Test-Stream/ β€” go peek, go lurk, it's public. πŸ‘€


πŸ‘‘ 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/


okay that's the whole page, bestie, you ate it πŸ’– this was written against perl v5.42.0 and dated 2025-07-25 β€” so like, remember the era you're reading this in. mwah. πŸ’…βœ¨

πŸ“¦ where this page comes from