Detect suppressed exceptions in unit tests.
gradlew assemble
This will create the Java Agent .jar
file: JavaAgent.jar
- ❌ Without Java Agent: the exception is swallowed.
gradlew test
- ✅ With Java Agent: the exception is rethrown.
gradlew test -Pjava_agent=true