schwern/test-more — Issue #243: Make it easy to change the formatter from inside the test.
Author: schwern
Created: 2011-11-30 01:34:24+00:00
State: open
Labels: DO IT, Formatter, Test-Builder2

I see two ways of doing this.

* A Test::Builder method which clears the formatters and adds a new one. change_formatter()?
* Change Test::Builder::Module->import so it understands a "formatter" option.

The former is the most flexible, and easier than the user having to clear and set the formatter in two steps. The latter allows `use Test::More formatter => TB2::Formatter::POSIX` but it will work for any module derived from Test::Builder::Module.