Class XmlReportsWritingListener
- java.lang.Object
-
- de.sormuras.junit.platform.maven.plugin.shadow.XmlReportsWritingListener
-
- All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener
public class XmlReportsWritingListener extends java.lang.Object implements org.junit.platform.launcher.TestExecutionListenerTestExecutionListenerthat writes a separate XML report for each root in theTestPlan.Note that the generated XML format is compatible with the de facto standard for JUnit 4 based test reports that was made popular by the Ant build system.
-
-
Constructor Summary
Constructors Constructor Description XmlReportsWritingListener(java.nio.file.Path reportsDir, java.util.function.BiConsumer<java.lang.String,java.lang.Throwable> log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecutionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult result)voidexecutionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)voidexecutionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)voidreportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
-
-
-
Method Detail
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionSkipped
public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, java.lang.String reason)- Specified by:
executionSkippedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionStarted
public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
- Specified by:
executionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
reportingEntryPublished
public void reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)- Specified by:
reportingEntryPublishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
executionFinished
public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult result)- Specified by:
executionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
-