Skip to content
Discussion options

You must be logged in to vote

The container is disposed after each test set which is I presume causing the shutdown?

Don't dispose explicitly, otherwise the container will stop.

But this isn't really the intended use case for reuse, especially not in CI. You still need to think about your test (session) lifecycle. When are instances shared across tests, when aren't they, which tests are destructive (e.g. modify data), and which aren't, etc.?

[...] from using Docker from a script to using Testcontainers. [...]
However it is extremely slow because it has to run a full set of migrations every time.

So this must have already been an issue back then, right? Or how did you handle the slowness when using scripts?

Here's …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@thecheesemp
Comment options

@thecheesemp
Comment options

Answer selected by thecheesemp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants