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

Should I replace the @MockLoggers annotation with an implementation of TestExecutionListener? #29

Open
vitalijr2 opened this issue Jan 6, 2025 · 1 comment

Comments

@vitalijr2
Copy link
Owner

vitalijr2 commented Jan 6, 2025

There is the article about TestExecutionListener by Priyesh Mashelkar.

The TestExecutionListener implementation could replace both beforeEach and afterEach methods that are called by @MockLoggers. The main advantage is that the implementation does not require the developer to add an annotation. As a result, they can avoid errors caused by failing to add it to the test class, which could otherwise lead to changes in logger behavior.

@vitalijr2
Copy link
Owner Author

I suppose "no"

The Launcher API targets programming tools like IDE. As mock-loggers is just an extension I should avoid to use listeners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant