-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Use @DirtiesContext with our own integration tests #38236
Comments
We could also set |
That might be a good option for most modules. I seem to remember we have some tests that might test context caching but I'm not sure a which level they work. |
Ah, |
Now this test can be run regardless of the 'spring.test.context.cache.maxSize' system property value. See gh-38236
I've labelled it as team meeting as we should talk about if that brings any benefit. Context caching is on by default for all users, if we disable it, we might not catch some bugs that would occur if it's switched on. |
After some discussion we decided not to do this. We want our tests to reflect a typical user setup. |
Our own integration tests are not likely to benefit from context caching so we could apply
@DirtiesContext
more liberally. This would also help prevent issues such as #38176The text was updated successfully, but these errors were encountered: