Test::FITesque::Test(3pm) | User Contributed Perl Documentation | Test::FITesque::Test(3pm) |
Test::FITesque::Test - A FITesque test
my $test = Test::FITesque::Test->new(); # add test rows $test->add( ... ); $test->add( ... ); # return number of TAP tests $test->test_count(); $test->run_tests();
my $test = Test::FITesque::Test->new();
This is a simple constructor. It takes a hashref of options:
Please note that the first test row that is added must be the FITesque fixture class name, followed by the arguments to be passed to its constructor.
$test->add(qw(Foo::Fixture some constructor args)); $test->add('click button', 'search');
This method allows you to add FITesque test rows individually. As with the data option in the constructor, the first row added must be the Fixture class name and its constructor arguments.
my $count = $test->test_count();
This method returns the number of TAP tests expected to be run during the test run.
$test->run_tests();
This method will run the FITesque test based upon the data supplied.
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.
2022-07-04 | perl v5.34.0 |