Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
schwern opened this issue Nov 30, 2011 · 0 comments
Closed

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

schwern opened this issue Nov 30, 2011 · 0 comments

Comments

@schwern
Copy link
Contributor

schwern commented Nov 30, 2011

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.

schwern added a commit that referenced this issue Nov 30, 2011
Formatters are no longer singletons.  TB2::TestState will get a new TAP formatter by default.

This makes TB2::EventCoordinator the only point for chosing a default coordinator.

For #244
schwern added a commit that referenced this issue Mar 22, 2012
Allows the formatter to be controlled without editing the test.

For #244
@schwern schwern closed this as completed Mar 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant