com.googlecode.lightest.core
Class DefaultSummaryReporter

java.lang.Object
  extended by com.googlecode.lightest.core.LightestReporter
      extended by com.googlecode.lightest.core.DefaultSummaryReporter
All Implemented Interfaces:
ILightestReporter, groovy.lang.GroovyObject, IReporter, ITestNGListener

public class DefaultSummaryReporter
extends LightestReporter
implements groovy.lang.GroovyObject, IReporter

This reporter creates XML files for each test method result containing task information throughout the test run, and creates an HTML report at the end.


Field Summary
static String CONFIG_FILE_NAME
          the name of the file to which the configuration text will be saved
static String RESULTS_FILE_NAME
          the name of the results XML to which the transform will be applied
 
Fields inherited from class com.googlecode.lightest.core.LightestReporter
DEFAULT_COOLDOWN_FACTOR
 
Constructor Summary
DefaultSummaryReporter()
           
DefaultSummaryReporter(CustomizedTransformer transformer, groovy.util.AntBuilder ant)
           
 
Method Summary
 void generateBaseReport(TestRegistry testRegistry, String outputDir)
          Copies some resource files to the output directory.
 void generateReport(List xmlSuites, List suites, String outputDirectory)
          Creates the final report summary.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void updateReport(LightestTestResult result, TestRegistry testRegistry, String outputDir)
          Writes out the report summary.
 
Methods inherited from class com.googlecode.lightest.core.LightestReporter
getConfigText, getCooldownFactor, getScheduled, isScheduled, onUpdateDeferred, setConfigText, setCooldownFactor, setScheduled, updateReport, updateReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE_NAME

public static final String CONFIG_FILE_NAME
the name of the file to which the configuration text will be saved


RESULTS_FILE_NAME

public static final String RESULTS_FILE_NAME
the name of the results XML to which the transform will be applied

Constructor Detail

DefaultSummaryReporter

public DefaultSummaryReporter()

DefaultSummaryReporter

public DefaultSummaryReporter(CustomizedTransformer transformer,
                              groovy.util.AntBuilder ant)
Method Detail

generateBaseReport

public void generateBaseReport(TestRegistry testRegistry,
                               String outputDir)
Copies some resource files to the output directory. If configText has been set, it is written to a file named CONFIG_FILE_NAME.

Specified by:
generateBaseReport in interface ILightestReporter
Overrides:
generateBaseReport in class LightestReporter
Parameters:
testRegistry - the registry contains all known information about pending tests.

updateReport

public void updateReport(LightestTestResult result,
                         TestRegistry testRegistry,
                         String outputDir)
Writes out the report summary.

Parameters:
result -
testRegistry -
outputDir -

generateReport

public void generateReport(List xmlSuites,
                           List suites,
                           String outputDirectory)
Creates the final report summary.

Specified by:
generateReport in interface IReporter
Parameters:
xmlSuites -
suites -
outputDirectory -

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class LightestReporter

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class LightestReporter

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class LightestReporter

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class LightestReporter

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class LightestReporter


Copyright © 2009. All Rights Reserved.