I am trying to debug a failing unit test, when I put run debug, the test runs and continues until it ends all the tests without stopping at any breakpoint, is that normal ?
This solution worked in IDEA. You need to add -DforkCount=0
JVM argument in your IDE. That is, because tests normally run on a separate JVM. Source: https://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With