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