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 for Tests to redirect Logging to test output #3972

Open
tig opened this issue Mar 8, 2025 · 1 comment
Open

Make it easy for Tests to redirect Logging to test output #3972

tig opened this issue Mar 8, 2025 · 1 comment
Labels
build-and-deploy Issues regarding to building and deploying Terminal.Gui testing Issues related to testing
Milestone

Comments

@tig
Copy link
Collaborator

tig commented Mar 8, 2025

No description provided.

@tig tig added build-and-deploy Issues regarding to building and deploying Terminal.Gui testing Issues related to testing labels Mar 8, 2025
@tig tig added this to the V2 Beta milestone Mar 8, 2025
@tznind
Copy link
Collaborator

tznind commented Mar 9, 2025

Should be able to just set static to a Moq for test run. But I suppose resetting it afterwords to NullLogger again would be polite.

There's similar need for v2 tests to set ApplicationImpl for duration of test. At the moment each test just has init and reset but it is brittle as if a test fails it will not restore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-and-deploy Issues regarding to building and deploying Terminal.Gui testing Issues related to testing
Projects
Status: No status
Development

No branches or pull requests

2 participants