Class JUnitXmlReportReader
java.lang.Object
org.apache.juneau.terminal.report.JUnitXmlReportReader
- All Implemented Interfaces:
ReportReader
Reads a single JUnit-XML report file, such as pytest's --junitxml output.
The framework key defaults to
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor; the framework key isjunit-xml .Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfw()Returns the default framework key for the tests this reader produces.read(Path path, ReportLimits limits) Reads a report.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.juneau.terminal.report.ReportReader
read
-
Constructor Details
-
JUnitXmlReportReader
public JUnitXmlReportReader()Constructor; the framework key isjunit-xml . -
JUnitXmlReportReader
Constructor.- Parameters:
fw- The framework key, matching^[a-z0-9][a-z0-9._-]{0,31}$ .- Throws:
IllegalArgumentException- If the key does not match.
-
-
Method Details
-
fw
Description copied from interface:ReportReaderReturns the default framework key for the tests this reader produces.- Specified by:
fwin interfaceReportReader- Returns:
- The key, for example
surefire orjest .
-
read
Description copied from interface:ReportReaderReads a report.- Specified by:
readin interfaceReportReader- Parameters:
path- The report file (or, for Surefire, a directory of them).limits- The bounds to apply.- Returns:
- The result; never
null .
-