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:
Tim Zöller 2026-01-02 17:50:06 +01:00
parent f4be439002
commit 534d55d6f3

21
pom.xml
View file

@ -208,4 +208,25 @@
</plugins>
</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>