Extend the API to support Stateful containers #7780
aleixmorgadas
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@aleixmorgadas thank you for sharing the idea. What's the rationale for the following point?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After the improved support for Testcontainers in the Spring Boot 3.1, I'm using the feature extensively with several DB modules such as MongoDB and PostgreSQL.
I found that I need to customize a lot the modules definition to make the containers stateful and keep the state between executions without using the
reuse
feature.You can see an example of how I'm extending the MongoDBContainer here in order to overcome some issues when restoring the state.
I found that Testcontainers API worked well for its initial purpose, Integration tests, but after being used for more than just test, I'm starting to experiment API gaps such as:
Happy to help! 🙌
Beta Was this translation helpful? Give feedback.
All reactions