Closed elR1cu closed 4 months ago
I've tried with the gradle
command, and it seems the tests are not run. According to this, the equivalent maven command to gradle bootBuildImage
is mvn spring-boot:build-image
but the latter run all the preceding phases to package phase, so also the test phase. According to Spring Boot Maven documentation, the equivalent command would be instead mvn spring-boot:build-image-no-fork
. In this case, no tests are run and just the image is built. Or instead mvnw spring-boot:build-image -DskipTests
.
@ThomasVitale does it make sense for you to update the Gradle and Maven section ?
@elR1cu thanks a lot for reporting this inconsistency between Gradle and Maven. I have updated the table in the README.md file accordingly: https://github.com/ThomasVitale/cloud-native-spring-in-action/commit/3b19d02bea585c376501c1c10412f2bba0ecbff0
Hi, I can successfully build the catalog-service image locally when I run the maven command. All is fine, and testcontainers ITs are ok. However, when I try to build the image with Tilt, I get a problem with testcontainers when running integration tests :
Any idea ? Thanks a lot !