The Surefire Plugin is used during the test phase of the build lifecycle to execute the unit tests of an application . It generates reports in two different file formats: Plain text files (*. txt)
Read moreWhy do I need maven surefire plugin?
Maven sure fire plugin is used to follow the sequence of tests in testng. xml file . If we don’t include the Mavwen surefire plugin then it will execute all the testcases under src/test/java which has prefix or suffix as ‘test’ and these tests will get executed without any sequence.
Read moreWhat is maven compiler plugin and maven surefire?
Those are two different plugins. maven-compiler-plugin, as its name suggests, handles compiling your code. maven-surefire-plugin handles [unit] test execution and failing the build process if there are test failures.
Read moreHow do I run maven surefire plugin?
The Maven surefire plugin provides a “test” parameter that we can use to specify test classes or methods we want to execute. If we want to execute a single test class, we can execute the command: mvn test -Dtest=”TestClassName” .
Read more