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.
From: @schwern Date: Wednesday Nov 30, 2011 at 01:34 GMT Orig: https://github.com/Test-More/test-more/issues/243
I see two ways of doing this.
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.Implement both.