You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afterwards i created some subclasses and annotated them as @nested
@DisplayName("Article")
@Nested
class validateArticle {
[...]
}
@DisplayName("Media")
@Nested
class validateMedia {
[...]
}
What did you want to happen?
When the first nested subclass (e.g. 'validateArticle' ) finishes executing all its tests, the docker compose cluster begins to stop the service. So the remaining classes can't be executed because they are missing the connection to the docker mysql container.
How can you configure the shutdown mechanism to be executed only after the whole testclass with all its subclasses has finished?
The text was updated successfully, but these errors were encountered:
What happened?
The docker compose cluster shuts down after one of the nested testclasses finishes in JUnit 5.
I added the dockerComposeExtension as mentioned with @RegisterExtension
Afterwards i created some subclasses and annotated them as @nested
What did you want to happen?
When the first nested subclass (e.g. 'validateArticle' ) finishes executing all its tests, the docker compose cluster begins to stop the service. So the remaining classes can't be executed because they are missing the connection to the docker mysql container.
How can you configure the shutdown mechanism to be executed only after the whole testclass with all its subclasses has finished?
The text was updated successfully, but these errors were encountered: