schwern/test-more — Issue #245: Let the history track if we're in a todo
Author: schwern
Created: 2011-12-01 00:12:15+00:00
State: open

Right now, Test::Builder has some state remaining to track if it's inside a todo test (see todo_start and todo_end). And Test::Builder's way of doing todo on a result by result basis is pretty qurky. Any sane module will want to declare that a whole block is todo.

* Add TodoStart event which contains the reason for the todo.
* Add TodoEnd.
* History->handle_todo_start will store the TodoStart event for others to see
* History->handle_todo_end will clear the todo event
* Change the TAP formatter to honor either the todo state from the history, or the pragma on the result