Skip to main content

How can I debug a test run by Maven in IntelliJ IDEA?

24 Nov 2014 - intellij

Open the Maven Projects view, and then open the Lifecycle tree item. Next, right-click on the test goal to creat a configuration. Add the command-line option -DforkMode=never or -DforkCount=0 to the configuration. Finally, run the configuration in debug mode.

References