Questions tagged [maven-surefire-plugin]

The Reliable Plugin plays an essential role in the testing phase of the development process by running the unit tests for an application. This tool is a popular choice within continuous integration practices.

Getting the test report link from Jenkins using the surefire-reports testng-results.xml file

Currently, my Jenkins instance is set up to run multiple builds. After each build, a testng-results.xml file is created at target/surefire-reports/testng-results.xml. To review the results, I usually visit the HTML report on the Jenkins job homepage, whic ...

The Maven Surefire Report Plugin is unable to generate an HTML report

Attempting to create an HTML report from my JUnit Selenium test cases has been challenging. I've followed various online tutorials that recommended using the maven-surefire-report-plugin. However, when attempting to implement this in my own project, i ...

An issue with Maven, TestNG, and Surefire: the AfterClass method is not being executed

Could there be a reason why Maven is not executing my AfterClass method with alwaysRun=true? The BeforeClass method runs without any issues and the test passes according to the Surefire report. I am running the command in the terminal: mvn -Dtest=TestSuit ...