Difference between revisions of "Maven Surefire Plugin"

From NovaOrdis Knowledge Base
Jump to: navigation, search
(Running Individual Tests)
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
* [[Maven#Plugin|Maven]]
* [[Maven#Plugin|Maven]]
* [[Maven_failsafe_Plugin|failsafe Plugin]]
Executes unit tests.
=Configuration Example=
=Configuration Example=

Latest revision as of 01:40, 7 November 2019




Executes unit tests.

Configuration Example


Also see Passing system properties to Gradle Tests.

Attaching the Plugin to a Specific Phase

Plugin Execution


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.

Do Not Run Tests

mvn -Dmaven.test.skip=true ...