Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debuging a unit test in maven is not stopping at breakpoint

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 ?

like image 355
ethicalhacker Avatar asked Sep 04 '25 17:09

ethicalhacker


1 Answers

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

like image 90
ThomasMX Avatar answered Sep 07 '25 17:09

ThomasMX