Class StatelessXmlReporter
- java.lang.Object
-
- org.apache.maven.plugin.surefire.report.StatelessXmlReporter
-
- All Implemented Interfaces:
org.apache.maven.surefire.extensions.StatelessReportEventListener<WrappedReportEntry,TestSetStats>
public class StatelessXmlReporter extends java.lang.Object implements org.apache.maven.surefire.extensions.StatelessReportEventListener<WrappedReportEntry,TestSetStats>
XML format reporter writing toTEST-reportName[-suffix].xml
file like written and read by Ant's<junit>
and<junitreport>
tasks, then supported by many tools like CI servers.
<?xml version="1.0" encoding="UTF-8"?> <testsuite name="suite name" [group="group"] tests="0" failures="0" errors="0" skipped="0" time="{float}"> <properties> <property name="name" value="value"/> [...] </properties> <testcase time="{float}" name="test name [classname="class name"] [group="group"]"/> <testcase time="{float}" name="test name [classname="class name"] [group="group"]"> <error message="message" type="exception class name">stacktrace</error> <system-out>system out content (present only if not empty)</system-out> <system-err>system err content (present only if not empty)</system-err> </testcase> <testcase time="{float}" name="test name [classname="class name"] [group="group"]"> <failure message="message" type="exception class name">stacktrace</failure> <system-out>system out content (present only if not empty)</system-out> <system-err>system err content (present only if not empty)</system-err> </testcase> <testcase time="{float}" name="test name [classname="class name"] [group="group"]"> <skipped/> </testcase> [...]
- Author:
- Kristian Rosenvold
- See Also:
- Ant's format enhancement proposal
(not yet implemented by Ant 1.8.2),
Ant's
XMLJUnitResultFormatter
-
-
Constructor Summary
Constructors Constructor Description StatelessXmlReporter(java.io.File reportsDirectory, java.lang.String reportNameSuffix, boolean trimStackTrace, int rerunFailingTestsCount, java.util.Map<java.lang.String,java.util.Deque<WrappedReportEntry>> testClassMethodRunHistoryMap, java.lang.String xsdSchemaLocation, java.lang.String xsdVersion, boolean phrasedFileName, boolean phrasedSuiteName, boolean phrasedClassName, boolean phrasedMethodName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanTestHistoryMap()
Clean testClassMethodRunHistoryMapvoid
testSetCompleted(WrappedReportEntry testSetReportEntry, TestSetStats testSetStats)
-
-
-
Constructor Detail
-
StatelessXmlReporter
public StatelessXmlReporter(java.io.File reportsDirectory, java.lang.String reportNameSuffix, boolean trimStackTrace, int rerunFailingTestsCount, java.util.Map<java.lang.String,java.util.Deque<WrappedReportEntry>> testClassMethodRunHistoryMap, java.lang.String xsdSchemaLocation, java.lang.String xsdVersion, boolean phrasedFileName, boolean phrasedSuiteName, boolean phrasedClassName, boolean phrasedMethodName)
-
-
Method Detail
-
testSetCompleted
public void testSetCompleted(WrappedReportEntry testSetReportEntry, TestSetStats testSetStats)
- Specified by:
testSetCompleted
in interfaceorg.apache.maven.surefire.extensions.StatelessReportEventListener<WrappedReportEntry,TestSetStats>
-
cleanTestHistoryMap
public void cleanTestHistoryMap()
Clean testClassMethodRunHistoryMap
-
-