Skip to content

Conversation

@eddumelendez
Copy link
Contributor

Currently, test doesn't run when performing mvn verify. By removing
junit jupiter dependencies tests started running. Also, in order to
run all tests successfully wiremock extension should resolve in compile
phase. Finally, enable container logs.

Currently, test doesn't run when performing `mvn verify`. By removing
junit jupiter dependencies tests started running. Also, in order to
run all tests successfully wiremock extension should resolve in compile
phase. Finally, enable container logs.
@oleg-nenashev oleg-nenashev added the chore Maintenance label Apr 19, 2023
Copy link
Member

@oleg-nenashev oleg-nenashev left a 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

.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()));
Copy link
Member

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>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Copy link
Member

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!

@oleg-nenashev oleg-nenashev merged commit d62d58f into wiremock:main Apr 19, 2023
@oleg-nenashev oleg-nenashev changed the title Fix test Fix test runs in Maven Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants