Interface ReportReader
- All Known Implementing Classes:
JestJsonReportReader,JUnitXmlReportReader,PlaywrightJsonReportReader,SurefireReportReader
public interface ReportReader
Reads one test-report format.
A reader never throws for bad input. A missing, unreadable, oversize, malformed or truncated file yields a result with the tests that could be recovered and a warning. Readers are stateless and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionfw()Returns the default framework key for the tests this reader produces.default ReportResultReads a report withReportLimits.DEFAULT.read(Path path, ReportLimits limits) Reads a report.
-
Method Details
-
fw
Returns the default framework key for the tests this reader produces.- Returns:
- The key, for example
surefire orjest .
-
read
Reads a report.- Parameters:
path- The report file (or, for Surefire, a directory of them).limits- The bounds to apply.- Returns:
- The result; never
null .
-
read
Reads a report withReportLimits.DEFAULT.- Parameters:
path- The report file or directory.- Returns:
- The result; never
null .
-