TEST2::IPC::DRIVER::FILES(3pm)
π Test2::IPC::Driver::Files β the main-character manpage β¨
okay so bestie, quick vibe check: this page is from the Perl Programmers Reference Guide and it's about Test2::IPC::Driver::Files. yes the module name is long. no we're not shortening it. iykyk π
πΈ NAME
Test2::IPC::Driver::Files β the temp dir + files concurrency model, fr fr.
π¦ DESCRIPTION
okay so this? this is the default concurrency model for Test2. and it's also the fallback one. lowkey the safety net of the whole operation.
it sends events between processes and threads using serialized files in a temporary directory. that's the whole trick. no cap.
is it fast? bestie. no. it is not particularly fast. π but it works everywhere, and honestly that's the energy we're going with. it's giving reliable bestie who shows up to every plan, not the flashy one who cancels last minute. π«Ά
β¨ SYNOPSIS
use Test2::IPC::Driver::Files;
# IPC is now enabled
that's it. that's the whole thing. one use line and boom, IPC is enabled. slay. π
π ENVIRONMENT VARIABLES
two env vars. both iconic. both here to help you out.
T2_KEEP_TEMPDIR=0β when this is true, the tempdir that the IPC driver is using will not be deleted when the test is done. yes, you heard me. it sticks around. so if you're the kind of person who wants to snoop through the leftovers, this is your moment. πT2_TEMPDIR_TEMPLATE='test2-XXXXXX'β this one sets the template for the IPC temp dir. the template should follow the template specifications fromFile::Temp, so go check that out if you're customizing. the default is literallytest2-XXXXXXright there in the example, cute right? π
π SEE ALSO
Test2::IPC::Driverβ that's where you go for the methods. go look, bestie. π
β SOURCE
the source code repository for Test2 lives over at:
https://github.com/Test-More/test-more/
π MAINTAINERS
Chad Granum <exodist@cpan.org>
π§ AUTHORS
Chad Granum <exodist@cpan.org>
(yes it's the same person in both sections. we love a consistent king. π)
π COPYRIGHT
Copyright Chad Granum <exodist@cpan.org>.
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
see:
https://dev.perl.org/licenses/
π sign-off
aaaaand that's the page! brought to you by perl v5.42.3, dated 2026-11-03, and yes the footer also said Test2::...r::Files(3pm) because the terminal is dramatic and truncates things. π anyway ily, go enable your IPC, and remember: temp dir + files = not fast, but everywhere. periodt. πΈβ¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms