Skip to content
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

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Fix test runs in Maven #7

merged 1 commit into from
Apr 19, 2023

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

@@ -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()));
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>
<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>
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