From f861977a68995b0ee66f9c19e6ea1c4caee54b89 Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Fri, 26 Jul 2024 11:55:00 +1000 Subject: Enable maven build logging for test container Maven was configured to build quietly, which means that we can't easily see if there are any issues and there is no summary of the tests that have run. Added maven configuration to ensure that the tests print a summary. --- Dockerfile.test | 4 ++-- pom.xml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile.test b/Dockerfile.test index 9a82cc5..1de70d1 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -5,11 +5,11 @@ COPY mvnw pom.xml ./ COPY .mvn .mvn COPY src src RUN chmod +x mvnw -RUN ./mvnw clean package -q -Dmaven.test.skip=true +RUN ./mvnw clean package -Dmaven.test.skip=true # Stage 2: TEST FROM maven:3.8.5-openjdk-17 AS test WORKDIR /app COPY --from=build /app /app RUN chmod +x mvnw -CMD ["./mvnw", "test", "-P", "test", "-q"] \ No newline at end of file +CMD ["./mvnw", "test", "-P", "test"] \ No newline at end of file diff --git a/pom.xml b/pom.xml index cc5ce5d..a19ac97 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,13 @@ + + org.apache.maven.plugins + maven-surefire-plugin + + true + + org.springframework.boot spring-boot-maven-plugin -- cgit v1.2.3