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

jUnit Extension to clean logger mocks #7

Open
vitalijr2 opened this issue Aug 20, 2024 · 5 comments
Open

jUnit Extension to clean logger mocks #7

vitalijr2 opened this issue Aug 20, 2024 · 5 comments

Comments

@vitalijr2
Copy link
Contributor

I have implemented a similar plugin to the platform loggers.

It uses the same way to create loggers and have same side effects: if loggers are re-used in other tests then a tester-developer should clean invocations manually by Mockito.clearInvocations(*). I have added an extension that does that small work before and after tests.

How about adding similar extension to mock-slf4j-impl?

@ocarlsen
Copy link
Owner

ocarlsen commented Aug 21, 2024 via email

@vitalijr2
Copy link
Contributor Author

Hi Owen, I added PR with a jUnit Extension. Looks like the workflows misses SONAR's environment variables.
On my box the building is OK.

@ocarlsen
Copy link
Owner

ocarlsen commented Sep 24, 2024 via email

@vitalijr2
Copy link
Contributor Author

@ocarlsen i found the mention of this issue: it's a feature for some security reasons.

@ocarlsen
Copy link
Owner

ocarlsen commented Sep 24, 2024

Awesome, thanks @vitalijr2. Could you please follow the recommendation:

  1. create a feature branch
  2. merge your changes into that
  3. then make a pull request?

That will trigger the workflow with credentials.

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

2 participants