NAME

TB2::SubtestEnd - End of a subtest event

DESCRIPTION

This is a TB2::Event representing the end of a subtest.

Receiving this event indicates to the parent that the subtest has ended. All events from here out belong to the current test level. Most event handlers will not have to be concerned about this.

Information about the subtest will be communicated back to the parent handler via <$subtest_end-history>>

METHODS

It has all the methods and attributes of TB2::Event with the following differences and additions.

Attributes

history

The TB2::History object from the subtest.

This can be used by event handlers to get information from the subtest.

Normally this will be filled in by TB2::TestState during posting. A builder may put in an alternative history object.

subtest_start

The matching TB2::Event::SubtestStart.

Normally this will be filled in by TB2::TestState during posting.

result

A Result summarizing the outcome of the subtest.

This will be created from the history by default.

build_event_type

The event type is subtest_end.

SEE ALSO

TB2::Event This does the Event role.

TB2::SubtestStart The cooresponding event which starts the subtest.