run-end-to-end-tests.ps1¶
Runs end-to-end tests only. These tests use Testcontainers to spin up Keycloak with the extension installed alongside a destination container, then trigger real events.
Usage¶
What It Does¶
- Sets working directory to project root
- Runs
mvn clean testwith filter-Dtest=io.github.fortunen.kete.endtoendtests.** - Uses
-Dsurefire.skipAfterFailureCount=1to stop on first failure - Reports pass/fail with duration
Maven Command¶
mvn clean test -Dtest=io.github.fortunen.kete.endtoendtests.** -Dsurefire.skipAfterFailureCount=1 -q
The test base class builds the shaded target/kete.jar itself (mvn package -DskipTests, about a minute) before the first container starts. The suite runs against quay.io/keycloak/keycloak:26.0.0 by default; add -Dkeycloak.version=26.7.2 to the Maven command to run it against another Keycloak release.
Exit Code¶
0— all end-to-end tests passed- Non-zero — one or more tests failed
Prerequisites¶
- Java 21
- Maven
- Docker Desktop (Testcontainers launches containers automatically)