Debugging Gradle Tests: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
=TO REFACTOR= | =TO REFACTOR= | ||
<font color=darkgray> | <font color=darkgray> |
Revision as of 22:18, 1 June 2021
Internal
Overview
Debugging in Command Line
Debugging in IDE
TO REFACTOR
TODO:
- For selecting specific tests for execution, see https://docs.gradle.org/current/userguide/java_testing.html#simple_name_pattern
Further research is needed:
Start Gradle in debug mode:
./gradlew --no-daemon -Dorg.gradle.debug=true :my-subproject:test
It kept starting the daemon, in debug mode, and I could not debug the test. The default port is 5005.
TODO: https://docs.gradle.org/current/userguide/java_testing.html#sec:debugging_java_tests
When the Gradle daemon is active, this works: