Test::...::Suite(3pm)

๐Ÿ“ฆ
version 0.04 ยท 2 versions
  • 0.04 ยท debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.04 ยท ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ‘‘ NAME ๐Ÿ‘‘

Test::FITesque::Suite โ€” it's the FITesque test suite runner, bestie ๐Ÿ’– like, the thing that runs your tests when one test just isn't enough of a vibe.


โœจ SYNOPSIS โœจ

  my $suite   = Test::FITesque::Suite->new();

  my $test    = Test::FITesque::Test->new();
  my $suite2  = Test::FITesque::Suite->new();

    ...

  $suite->add($test, $suite2, ...);

  my $test_count = $suite->test_count();
  $suite->run_tests();

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so this package is literally your way of running a whole suite of tests ๐Ÿซถ and the iconic part? it also lets you run suites of suites, in whatever hierarchy you see fit. go feral with the nesting, bestie โ€” the vibes are yours to arrange ๐Ÿ‘‘


๐Ÿ’… METHODS ๐Ÿ’…

new

  my $suite = Test::FITesque::Suite->new();

this method is a simple constructor โ€” lowkey iconic for it โ€” but it can take a single parameter inside a hashref:

  • data โ€” this takes a simple arrayref of tests or suites. that's it, that's the whole thing โœจ

add

  $suite->add($test, $suite2, ...);

this method lets you add tests or suites to the current suite object. stacking them up like a little test tower ๐ŸŽ€

test_count

  my $count = $suite->test_count();

this method returns the test count for all tests within the suite. the whole headcount, no cap ๐Ÿงฎ

run_tests

  $suite->run_tests();

this method will run all tests within a suite. go off, king ๐Ÿ‘‘


๐Ÿฆ‹ AUTHOR ๐Ÿฆ‹

Scott McWhirter, "<konobi@cpan.org>" โ€” shoutout to the legend fr fr ๐Ÿ’œ


Copyright 2007 Scott McWhirter, all rights reserved.

This program is released under the following license: BSD. Please see the LICENSE file included in this distribution for details.

ngl if you're gonna redistribute this, go read that LICENSE file first, bestie โ€” it's right there in the distribution ๐Ÿ™ˆ

and that's the whole page, babes ๐Ÿ’– this was written up for perl v5.34.0 and dated 2022-07-04, under the Test::...::Suite(3pm) manual page. mwah, go run some tests ๐Ÿ’…โœจ