Class LegacyXmlReportGeneratingListener

  • All Implemented Interfaces:
    org.junit.platform.launcher.TestExecutionListener

    @API(status=STABLE,
         since="1.7")
    public class LegacyXmlReportGeneratingListener
    extends java.lang.Object
    implements org.junit.platform.launcher.TestExecutionListener
    LegacyXmlReportGeneratingListener is a TestExecutionListener that generates a separate XML report for each root in the TestPlan.

    Note that the generated XML format is compatible with the legacy de facto standard for JUnit 4 based test reports that was made popular by the Ant build system.

    Since:
    1.4
    See Also:
    LoggingListener, SummaryGeneratingListener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult result)  
      void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)  
      void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)  
      void reportingEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)  
      void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)  
      void testPlanExecutionStarted​(org.junit.platform.launcher.TestPlan testPlan)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

        dynamicTestRegistered
    • Constructor Detail

      • LegacyXmlReportGeneratingListener

        public LegacyXmlReportGeneratingListener​(java.nio.file.Path reportsDir,
                                                 java.io.PrintWriter out)
    • Method Detail

      • testPlanExecutionStarted

        public void testPlanExecutionStarted​(org.junit.platform.launcher.TestPlan testPlan)
        Specified by:
        testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
      • testPlanExecutionFinished

        public void testPlanExecutionFinished​(org.junit.platform.launcher.TestPlan testPlan)
        Specified by:
        testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
      • executionSkipped

        public void executionSkipped​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                     java.lang.String reason)
        Specified by:
        executionSkipped in interface org.junit.platform.launcher.TestExecutionListener
      • executionStarted

        public void executionStarted​(org.junit.platform.launcher.TestIdentifier testIdentifier)
        Specified by:
        executionStarted in interface org.junit.platform.launcher.TestExecutionListener
      • reportingEntryPublished

        public void reportingEntryPublished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                            org.junit.platform.engine.reporting.ReportEntry entry)
        Specified by:
        reportingEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
      • executionFinished

        public void executionFinished​(org.junit.platform.launcher.TestIdentifier testIdentifier,
                                      org.junit.platform.engine.TestExecutionResult result)
        Specified by:
        executionFinished in interface org.junit.platform.launcher.TestExecutionListener