I had the following code which has many test Functions
package A;
{
BEGIN { $ENV{DIE_ON_FAIL} = 1 }
sub test_168 : Test(no_plan){
print("168");
}
sub test_169 : Test(no_plan){
print("169");
}
1;
}
If invoke this module using Test::Class all the testMethods are Executed. Is there any solution to execute the required methods only
You can set the TEST_METHOD environment variable to restrict the testing to a single method (
TEST_METHOD='test_168') or all methods that match a regex (TEST_METHOD='test_16.')