org.apache.maven.continuum.reports.surefire
Class DefaultReportTestSuiteGenerator

java.lang.Object
  extended by org.apache.maven.continuum.reports.surefire.DefaultReportTestSuiteGenerator
All Implemented Interfaces:
ReportTestSuiteGenerator, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

@Service(value="reportTestSuiteGenerator")
public class DefaultReportTestSuiteGenerator
extends Object
implements ReportTestSuiteGenerator, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Since:
12 nov. 07
Version:
$Id: DefaultReportTestSuiteGenerator.java 1372267 2012-08-13 05:47:30Z brett $
Author:
olamy

Constructor Summary
DefaultReportTestSuiteGenerator()
           
 
Method Summary
 List<ReportTestSuite> generateReports(File directory)
          Use generateReports with default includes *.xml and default excludes *.txt
 List<ReportTestSuite> generateReports(File directory, List<String> includes, List<String> excludes)
           
 List<ReportTestSuite> generateReports(int buildId, int projectId)
           
 ReportTestResult generateReportTestResult(int buildId, int projectId)
           
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReportTestSuiteGenerator

public DefaultReportTestSuiteGenerator()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

generateReports

public List<ReportTestSuite> generateReports(File directory,
                                             List<String> includes,
                                             List<String> excludes)
                                      throws ReportTestSuiteGeneratorException
Specified by:
generateReports in interface ReportTestSuiteGenerator
Parameters:
directory - directory containing surefire tests files
includes - file types to include
excludes - file types to exclude
Returns:
List of ReportTestSuite
Throws:
ReportTestSuiteGeneratorException
See Also:
ReportTestSuiteGenerator.generateReports(java.io.File, java.util.List, java.util.List)

generateReports

public List<ReportTestSuite> generateReports(File directory)
                                      throws ReportTestSuiteGeneratorException
Description copied from interface: ReportTestSuiteGenerator
Use generateReports with default includes *.xml and default excludes *.txt

Specified by:
generateReports in interface ReportTestSuiteGenerator
Parameters:
directory - directory containing surefire tests files
Returns:
List of ReportTestSuite
Throws:
ReportTestSuiteGeneratorException
See Also:
ReportTestSuiteGenerator.generateReports(java.io.File)

generateReports

public List<ReportTestSuite> generateReports(int buildId,
                                             int projectId)
                                      throws ReportTestSuiteGeneratorException
Specified by:
generateReports in interface ReportTestSuiteGenerator
Returns:
List of ReportTestSuite
Throws:
ReportTestSuiteGeneratorException
See Also:
ReportTestSuiteGenerator.generateReports(int, int)

generateReportTestResult

public ReportTestResult generateReportTestResult(int buildId,
                                                 int projectId)
                                          throws ReportTestSuiteGeneratorException
Specified by:
generateReportTestResult in interface ReportTestSuiteGenerator
Returns:
List of ReportTestResult
Throws:
ReportTestSuiteGeneratorException
See Also:
ReportTestSuiteGenerator.generateReportTestResult(int, int)


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.