Skip to content
Discussion options

You must be logged in to vote

The problem with your approach is that you will have the Testcontainers dependency in your runtime classpath. It might not be a problem for you though.

Creating an extension would allow you to have the dependency only in the deployment classpath (but you wouldn't be able to start the container outside of dev or test mode).

If you decide to go for the extension (a simple extension is relatively simple to create), you have examples in the codebase on how to start the dev service in dev/test modes.

So, there's no one size fits all, it really depends on what you want to achieve.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@luca-bassoricci
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@luca-bassoricci
Comment options

Answer selected by luca-bassoricci
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