-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test runs in Maven #7
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bit weird for JUnit 5 dependencies, but I rarely do projects without a parent POM where all JUnit 4/5 alignment is already sorted. Definitely fine to remove JUnit 5 for now, formal support is on my TODO list
@@ -44,7 +44,7 @@ public class WireMockContainerExtensionTest { | |||
.withStartupTimeout(Duration.ofSeconds(60)) | |||
.withMapping("json-body-transformer", WireMockContainerExtensionTest.class, "json-body-transformer.json") | |||
.withExtension("JSON Body Transformer", Collections.singleton("com.ninecookies.wiremock.extensions.JsonBodyTransformer"), | |||
Collections.singleton(Paths.get("target", "test-wiremock-extension", "9cookies-wiremock-extensions.jar").toFile())); | |||
Collections.singleton(Paths.get("target", "test-wiremock-extension", "wiremock-extensions-0.4.1-jar-with-dependencies.jar").toFile())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, renamed it and missed in the release. Thanks!
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<version>3.24.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is definitely better than my attempts to just capture streams through Testcontainers APIs, thanks!
Currently, test doesn't run when performing
mvn verify
. By removingjunit jupiter dependencies tests started running. Also, in order to
run all tests successfully wiremock extension should resolve in compile
phase. Finally, enable container logs.