Open philwebb opened 1 year ago
@AdrianHarenczyk Thanks for getting in touch. Your question seems off-topic for this issue related to documentation, and as mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. This feels like a question that would be better suited to Stack Overflow. Please post your question there.
We should also document problems that can be caused by the combination of using @Testcontainers
and the test context framework's caching. The former will stop containers in an after all callback, whereas the latter may cache a context that will then be reused later on and will attempt to access a service in an already-stopped container. See #42854 for an example of this problem.
See https://github.com/spring-projects/spring-boot/issues/35223#issuecomment-1531061583