Add Maven profile to skip integration tests when Docker unavailable
Integration tests using Testcontainers require Docker. This profile allows running unit tests in CI/CD environments or local setups without Docker. Usage: mvn test -P skip-integration-tests Results: - 97 unit tests pass - 18 integration tests skipped (require Docker) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f4be439002
commit
534d55d6f3
1 changed files with 21 additions and 0 deletions
21
pom.xml
21
pom.xml
|
|
@ -208,4 +208,25 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<!-- Profile to skip integration tests (useful when Docker is not available) -->
|
||||||
|
<profile>
|
||||||
|
<id>skip-integration-tests</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*IntegrationTest.java</exclude>
|
||||||
|
<exclude>**/ActivityImageServiceTest.java</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue