Test::...rminal(3pm)
π Test::Unit::Runner::Terminal π
okay bestie, welcome to the Test::...rminal(3pm) page β that's the shorthand for Test::Unit::Runner::Terminal, and it lives in the User Contributed Perl Documentation section. she's a unit testing framework helper class and she is, genuinely, that girl. π
β¨ SYNOPSIS β¨
use Test::Unit::Runner::Terminal;
my $testrunner = Test::Unit::Runner::Terminal->new();
$testrunner->start($my_test_class);
likeβ¦ look at her. so clean. so composed. π
πΈ DESCRIPTION πΈ
so this class is a test runner β specifically the one you reach for when you're doing the command line style use of the testing framework. it's giving terminal core and honestly?? obsessed. π₯οΈβ¨
she's lowkey similar to her parent class, Test::Unit::TestRunner, but here's the glow-up: instead of just printing a sad little string of dots, E's and F's like some kind of medieval scroll, she uses terminal escape sequences to continually update a wayyyy more informative status report as the runner progresses through the tests. the way that she keeps you posted?? main character energy fr fr. π
and what does that status report tell you, you ask? literally everything you need:
- the number of tests run
- the number of failures and errors encountered
- which test is currently being run
- and where it lives in the suite hierarchy ποΈ
the class needs one argument, bestie β that's the name of the class encapsulating the tests to be run. just one. give her that and she handles the rest. π«Ά
π¦ OPTIONS π¦
-waitβ wait for user confirmation between tests. yes, between every test. she wants your blessing each time, and honestly? valid. π-vβ version info. you want the lore? you get the lore. β
π AUTHOR π
Copyright (c) 2000-2002, 2005 the PerlUnit Development Team (see Test::Unit or the AUTHORS file included in this distribution).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
(so like. it's free. it's Perl's terms. respect the elders. π§)
π SEE ALSO π
Test::Unit::TestCaseTest::Unit::ListenerTest::Unit::TestSuiteTest::Unit::ResultTest::Unit::TkTestRunner- For further examples, take a look at the framework self test collection (
t::tlib::AllTests).
iykyk β go read them, bestie. they're the supporting cast and they ate. π₯
okay and that's the whole page!! this cutie is documented as perl v5.40.1, dated 2026-04-05, and she answers to Test::...rminal(3pm). no cap, that's a wrap. bye bestie, go run some tests πππ
π¦ where this page comes from
- ubuntu stonking: libtest-unit-perl 0.30-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