The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application. It is commonly used in continuous integration.
Maven Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application.
It runs unit tests of a maven project and produces reports in text, XML and HTML format. By default, it will fail the build if the unit tests fail. It supports multiple unit test frameworks, notably JUnit and TestNG.
Its only goal is the test
goal. Check its official usage page for a first sample.