org.apache.geronimo.mavenplugins.testsuite.report
Class SurefireReportParser

java.lang.Object
  extended by org.apache.geronimo.mavenplugins.testsuite.report.SurefireReportParser

public class SurefireReportParser
extends Object


Constructor Summary
SurefireReportParser()
           
SurefireReportParser(File reportsDirectory, Locale locale)
           
 
Method Summary
 String computePercentage(int tests, int errors, int failures, int skipped)
           
 List getFailureDetails(List testSuitesList)
           
 Locale getLocale()
           
 NumberFormat getNumberFormat()
           
 File getReportsDirectory()
           
 Map getSuitesGroupByPackage(List testSuitesList)
           
 Map getSummary(List suites)
           
protected  String parseTestCaseName(String lineString)
           
protected  String parseTestSuiteName(String lineString)
           
protected  String parseTestSuitePackageName(String lineString)
           
 List parseXMLReportFiles()
           
 void setLocale(Locale locale)
           
 void setNumberFormat(NumberFormat numberFormat)
           
 void setReportsDirectory(File reportsDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurefireReportParser

public SurefireReportParser()

SurefireReportParser

public SurefireReportParser(File reportsDirectory,
                            Locale locale)
Method Detail

parseXMLReportFiles

public List parseXMLReportFiles()
                         throws org.apache.maven.reporting.MavenReportException
Throws:
org.apache.maven.reporting.MavenReportException

parseTestSuiteName

protected String parseTestSuiteName(String lineString)

parseTestSuitePackageName

protected String parseTestSuitePackageName(String lineString)

parseTestCaseName

protected String parseTestCaseName(String lineString)

getSummary

public Map getSummary(List suites)

setReportsDirectory

public void setReportsDirectory(File reportsDirectory)

getReportsDirectory

public File getReportsDirectory()

setLocale

public final void setLocale(Locale locale)

getLocale

public Locale getLocale()

setNumberFormat

public void setNumberFormat(NumberFormat numberFormat)

getNumberFormat

public NumberFormat getNumberFormat()

getSuitesGroupByPackage

public Map getSuitesGroupByPackage(List testSuitesList)

computePercentage

public String computePercentage(int tests,
                                int errors,
                                int failures,
                                int skipped)

getFailureDetails

public List getFailureDetails(List testSuitesList)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.