Inside my Gradle-script I want to check if the tests are started in debug mode by Intellij Idea.
I've already tried the following:
Test#getDebug()
always returns falseManagementFactory#getRuntimeMXBean()...
returns the same parameters for run and debug executions (because Gradle itself is not startet in debug mode only the test)detect --debug always returns false
How can I find out if Intellij started the tests in debug mode?
It could be something like detecting if --debug-jvm
isset, but as of now, I cannot find the process which starts the tasks. (I've tried something like ps aux | grep test
which got me no results)