Search⌘ K

TestNG Reporting

Explore TestNG's default reporting features and learn how to implement custom reporters by using the IReporter interface. This lesson covers configuring reports to track test results effectively with examples of HTML summary reports.

We'll cover the following...

List of default TestNG reports #

TestNG adds a few basic reports of the test run by default. The following are some reporters:

  • org.testng.reporters.SuiteHTMLReporter – generates a HTML reporter for suites.
  • org.testng.reporters.FailedReporter – generates testng-failed.xml containing only the failed tests.
  • org.testng.reporters.XMLReporter – generates summary of test output in xml format.
  • org.testng.reporters.EmailableReporter2 – generates a single-page HTML report emailable-report.html of the test results.
  • org.testng.reporters.JUnitReportReporter – generates Junit test output xml for each of the test suites.

Custom reporters #

...