From searching online, I’ve found two ways to debug tests via gradle:
- Setting the
debugproperty within the
testtask to true and executing your gradle command without any additional flags
- passing the
--debug-jvmflag to gradle
In both cases, make sure you create a debug run config (port 5005) and run said config after starting your tests.