In case of Gradle process, you can use IDEA remote...
# announcements
y
In case of Gradle process, you can use IDEA remote debug. Put some VM opts (-Xdebug and others) into gradlew wrapper script (suspend=y is convenient), launch the Maven test and connect to the process after the test actually starts.