diff options
| author | Szymon Szukalski <szymon@skas.io> | 2024-07-26 11:55:00 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@skas.io> | 2024-07-26 11:55:00 +1000 |
| commit | f861977a68995b0ee66f9c19e6ea1c4caee54b89 (patch) | |
| tree | d779c1c246a310bdc78ed7ed872afbd082b8759d | |
| parent | 1abae6d1e41659ebe3230352c58e0cf0550f19eb (diff) | |
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.
| -rw-r--r-- | Dockerfile.test | 4 | ||||
| -rw-r--r-- | 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 @@ -89,6 +89,13 @@ <build> <plugins> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <printSummary>true</printSummary> + </configuration> + </plugin> + <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> |
