Test::...::Test(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

πŸ’– Test::FITesque::Test β€” a FITesque test πŸ’–

okay so bestie, welcome to Test::FITesque::Test, a lil Perl module from the User Contributed Perl Documentation collection, and it's literally exactly what it says on the tin: a FITesque test ✨


🌸 SYNOPSIS 🌸

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

# add test rows
$test->add( ... );
$test->add( ... );

# return number of TAP tests
$test->test_count();

$test->run_tests();

πŸ¦‹ DESCRIPTION πŸ¦‹

(no cap, the original page leaves this section absolutely empty β€” the methods below are where all the lore lives πŸ’…)


πŸŽ€ METHODS πŸŽ€

πŸ’œ new

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

This is a simple constructor, bestie. She takes a hashref of options:

  • data β€” this is an arrayref of arrayrefs for the FITesque run.
🚨 okay important thing, listen up: the first test row that is added must be the FITesque fixture class name, followed by the arguments to be passed to its constructor. like, that's the rule, fr fr.

✨ add

$test->add(qw(Foo::Fixture some constructor args));
$test->add('click button', 'search');

This method lets you add FITesque test rows one at a time, individually, your own way. And just like with the data option in the constructor β€” the first row you add has to be the Fixture class name and its constructor arguments. same energy, different door πŸ’…


🌈 test_count

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

This method returns the number of TAP tests expected to be run during the test run. she's the little counter keeping everyone honest 🫢


⭐ run_tests

$test->run_tests();

This method will run the FITesque test based upon the data supplied. main character moment tbh πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Scott McWhirter, "<konobi@cpan.org>"


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.


and that's the whole page, bestie!! this one's from perl v5.34.0, dated 2022-07-04, part of the User Contributed Perl Documentation, and she ate, no crumbs. mwah πŸ’‹