Run eMedia Maven tests. Handles unit tests, integration tests, and targeted test runs across all modules. Usage: /run-tests [args]
Parse the user's arguments (if any) and run the correct Maven test command from the project root /opt/projects/arena-emedia/main/arena-emedia.
Valid -pl values: common, local-core, local, client, local-mock, integration-test
| Intent | Command |
|---|---|
| All unit tests | mvn test |
| Unit tests in one module | mvn test -pl <module> |
| Specific test class | mvn test -pl <module> -Dtest=ClassName |
| Specific test method | mvn test -pl <module> -Dtest=ClassName#methodName |
| In-process integration tests | mvn verify -pl local -Pintegration-test |
| Integration test module (needs running server) |
mvn verify -pl integration-test -Pintegration-test |
| Mock server integration tests | mvn verify -pl local-mock -Pintegration-test |
mvn test)Test/IT) → find which module it belongs to and add -Dtest=ClassNameClassName#method → pass as-is to -Dtest=integration or it keyword → use -Pintegration-test with the local module unless another module is specifiedintegration-test module specified → remind the user this requires a running eMedia serverRun the command using the Bash tool and display the output. On failure, show the relevant error lines (skip [INFO] noise) and suggest the likely cause.