Let the history track if we're in a todo #245

schwern opened this Issue Dec 1, 2011 · 0 comments


None yet
1 participant

schwern commented Dec 1, 2011

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

@schwern schwern closed this Mar 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment