schwern/test-more — Issue #166: Implement basic TestState
Author: schwern
Created: 2011-11-03 02:21:05+00:00
State: open
Labels: DO IT, Do next, Subtest, Test-Builder2

Test::Builder2::TestState has two purposes:

* Create and manage EventCoordinators to hold state for each level of subtests (including the top).
* Act as a singleton for builders to share test state.

It presents the same interface as an EventCoordinator.

* Has a stack of EventCoordinators
* Delegates to the top EventCoordinator in the stack
* Has a singleton method

Implement this much and make the builders use it. It should require no other change.