Maven Surefire Plugin: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * http://maven.apache.org/surefire/maven-surefire-report-plugin/ =Internal= * Maven =Procedures= ==Debugging Tests== * Debugging Example: htt...")
 
Line 14: Line 14:


<pre>
<pre>
mvn -Dmaven.surefire.debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5012" test
mvn -Dmaven.surefire.debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" test
</pre>
</pre>



Revision as of 20:57, 8 November 2016

External

Internal

Procedures

Debugging Tests

mvn -Dmaven.surefire.debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" test

Running Individual Tests

mvn -Dtest=TestCircle test

Works for both JUnit and TestNG.