run-all-tests.ps1¶
Runs all three test suites sequentially: unit tests → integration tests → end-to-end tests. Aborts immediately if any suite fails.
Usage¶
What It Does¶
- Runs
mvn cleanonce - Runs unit tests (
io.github.fortunen.kete.unittests.**) — aborts on failure - Runs integration tests (
io.github.fortunen.kete.integrationtests.**) — aborts on failure - Runs end-to-end tests (
io.github.fortunen.kete.endtoendtests.**) — aborts on failure - Prints summary with per-suite and total durations
Execution Order¶
Each suite must pass before the next one starts. All suites use -Dsurefire.skipAfterFailureCount=1.
Output¶
✓ ALL TESTS PASSED!
Unit tests: 12.3s
Integration tests: 145.7s
End-to-end tests: 89.4s
─────────────────────────────
Total: 247.4s
Exit Code¶
0— all three suites passed- Non-zero — the first failing suite's exit code
Prerequisites¶
- Java 21
- Maven
- Docker Desktop (for integration and end-to-end tests)