Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

Make it easy to change the formatter from outside the test #200

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @schwern Date: Wednesday Nov 30, 2011 at 01:40 GMT Orig: https://github.com/Test-More/test-more/issues/244

That is, change the formatter without altering the test. Probably with an environment variable.

For example, TB2_FORMATTER_CLASS=TB2::Formatter::POSIX make test.

This would be honored at the TB2::EventCoordinator level changing the formatter used by default.