public class SurefireReportParser extends Object
Constructor and Description |
---|
SurefireReportParser() |
SurefireReportParser(List<File> reportsDirectoriesFiles,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
String |
computePercentage(int tests,
int errors,
int failures,
int skipped) |
List<ReportTestCase> |
getFailureDetails(List<ReportTestSuite> testSuitesList) |
NumberFormat |
getNumberFormat() |
Map<String,List<ReportTestSuite>> |
getSuitesGroupByPackage(List<ReportTestSuite> testSuitesList) |
Map<String,String> |
getSummary(List<ReportTestSuite> suites) |
static boolean |
hasReportFiles(File directory)
Returns
true if the specified directory contains at least one report file. |
protected String |
parseTestCaseName(String lineString) |
protected String |
parseTestSuiteName(String lineString) |
protected String |
parseTestSuitePackageName(String lineString) |
List<ReportTestSuite> |
parseXMLReportFiles() |
void |
setLocale(Locale locale) |
void |
setReportsDirectory(File reportsDirectory) |
public List<ReportTestSuite> parseXMLReportFiles() throws org.apache.maven.reporting.MavenReportException
public Map<String,String> getSummary(List<ReportTestSuite> suites)
public void setReportsDirectory(File reportsDirectory)
public final void setLocale(Locale locale)
public NumberFormat getNumberFormat()
public Map<String,List<ReportTestSuite>> getSuitesGroupByPackage(List<ReportTestSuite> testSuitesList)
public String computePercentage(int tests, int errors, int failures, int skipped)
public List<ReportTestCase> getFailureDetails(List<ReportTestSuite> testSuitesList)
public static boolean hasReportFiles(File directory)
true
if the specified directory contains at least one report file.directory
- the directorytrue
if the specified directory contains at least one report file.Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.