schwern/test-more — Issue #169: Handle subtest_start and subtest_end in TestCase
Author: schwern
Created: 2011-11-03 02:34:48+00:00
State: open
Labels: DO IT, Events, Subtest, Test-Builder2

When a TestCase receives a `subtest_start` it will...

* Add nesting information to the subtest_start event, if not there already
** Don't overwrite it, let a Builder lie if it wants to
* Post the event
* Create a new EventCoordinator using class of the delegate
* Ask the delegate to get a subtest handler from each handler.
* Push these into the new EventCoordinator being sure to retain their order
* Push the new EventCoordinator onto the TestState stack. It is now the delegate.

At `subtest_end`...

* Attach the current History object to `subtest_end` if it's not already there (do not overwrite)
* Pop the stack of EventCoordinators
* Post the event