TB2::Event::SetPlan - Set the plan for the current test
This is an Event indicating that the test plan for the current test has been set.
It must come between a test_start and an test_end Event.
test_start
test_end
There should be only one plan per test. An exception is that a no_plan can be followed by a more restrictive plan.
The total number of asserts expected to be in this test.
Must be a positive integer or 0.
Defaults to 0.
If true, there is explicitly no plan for this test. Any positive number of asserts is fine.
Defaults to false.
If true, it indicates that the rest of the asserts in the test will not be executed. Usually because they would not make sense in the current environment (Unix tests on Windows, for example).
No results should follow in this test.
The reason the test has been skipped.
Defaults to empty string.
A hash ref containing any further information about the plan.
Defaults to an empty hash ref.
The event type is set_plan.
set_plan
TB2::Event
To install Test::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Simple
CPAN shell
perl -MCPAN -e shell install Test::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.