Running Tests
This project uses the Maven wrapper (./mvnw) located in the backend/ directory. There is no global mvn on PATH.
Commands
Always run from the backend/ working directory.
Run all tests:
bash
./mvnw test -Dsurefire.useFile=false
Run a single test class:
bash
./mvnw test -Dtest="CategoryIntegrationTest" -Dsurefire.useFile=false
Run a single test method:
bash
./mvnw test -Dtest="CategoryIntegrationTest#category_invite_and_members" -Dsurefire.useFile=false
Run tests matching a pattern:
bash
./mvnw test -Dtest="*IntegrationTest" -Dsurefire.useFile=false
Notes
- •Always use
./mvnw, nevermvn. - •Always pass
-Dsurefire.useFile=falseso test output goes to stdout. - •Working directory must be
backend/(wheremvnwlives). - •Pipe through
| tail -30for quick pass/fail summary when output is long.