Skip to content

Why is .withReuse(true) not the default? #5023

Answered by kiview
wimdeblauwe asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @wimdeblauwe, happy to hear that you seem to like withReuse so much, you could imagine it being the default 🙂

Reusable containers is still an alpha feature with only experimental support, so we currently want to make the opt-in very explicit. In addition, withReuse indicates if a container can be reused in the context of its creation (or its test), while the flag in .testcontainers.properties indicates that the runtime environment would benefit from reuse (e.g. we generally don't want CI to use reuse).

Still thanks for your comment, we will consider the different UX aspects once we move forward in making this feature GA 👍

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wimdeblauwe
Comment options

Answer selected by wimdeblauwe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants