schwern/test-more — Issue #168: Add SubtestStart and SubtestEnd events
Author: schwern
Created: 2011-11-03 02:28:05+00:00
State: open
Labels: DO IT, Easy, Events, Subtest, Test-Builder2

Test::Builder2::Event::SubtestStart and SubtestEnd are needed to signal the start and end of subtests. They are intended to be received by the *parent* event coordinator of a subtest, not the subtest itself.

Their type is `subtest_start` and `subtest_end`.

SubtestStart contains information about the depth of nesting, the first subtest starts at 1, if another one is opened inside that it starts at 2 and so on. Default to 1.

The SubtestEnd event contains the History object from the EventCoordinator of the subtest. It will be put there by the TestState. It is required.