NAME

TB2::Event::SetPlan - Set the plan for the current test

DESCRIPTION

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.

There should be only one plan per test. An exception is that a no_plan can be followed by a more restrictive plan.

METHODS

Attributes

asserts_expected

The total number of asserts expected to be in this test.

Must be a positive integer or 0.

Defaults to 0.

no_plan

If true, there is explicitly no plan for this test. Any positive number of asserts is fine.

Defaults to false.

skip

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.

Defaults to false.

skip_reason

The reason the test has been skipped.

Defaults to empty string.

plan

A hash ref containing any further information about the plan.

Defaults to an empty hash ref.

build_event_type

The event type is set_plan.

SEE ALSO

TB2::Event