|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.LightestReporter
com.googlecode.lightest.core.DefaultDetailsReporter
public class DefaultDetailsReporter
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 |
DEFAULT_STYLESHEET_REF
the default stylesheet to the XML report detail files will reference |
static String |
SUITE_FILE_NAME
the name of the file to which the suite XML will be saved |
| Fields inherited from class com.googlecode.lightest.core.LightestReporter |
|---|
DEFAULT_COOLDOWN_FACTOR |
| Constructor Summary | |
|---|---|
DefaultDetailsReporter()
|
|
DefaultDetailsReporter(groovy.util.AntBuilder ant)
|
|
| Method Summary | |
|---|---|
void |
generateBaseReport(TestRegistry testRegistry,
String outputDir)
Copies some resource files to the output directory. |
SimpleDateFormat |
getDateFormatter()
|
List |
getInfoSourceClassNames()
|
protected List |
getInfoSources()
|
groovy.lang.MetaClass |
getMetaClass()
|
boolean |
getPreformatDetailedMessage()
|
Object |
getProperty(String name)
|
protected String |
getStatusString(int testResultStatus)
|
protected Map |
getTaskResultAttributes(ITaskResult taskResult)
|
protected groovy.lang.Closure |
getTaskResultMarkup(ITaskResult taskResult)
|
String |
getXmlStylesheetRef()
|
Object |
invokeMethod(String name,
Object args)
|
boolean |
isPreformatDetailedMessage()
|
void |
setDateFormatter(SimpleDateFormat value)
|
void |
setInfoSourceClassNames(List value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setPreformatDetailedMessage(boolean value)
|
void |
setProperty(String name,
Object value)
|
void |
setXmlStylesheetRef(String value)
|
void |
updateReport(ISuite suite,
TestRegistry testRegistry,
String outputDir)
Copies the XML rendering of the suite to the appropriate location under the output directory. |
void |
updateReport(LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
Writes out a detail file. |
| Methods inherited from class com.googlecode.lightest.core.LightestReporter |
|---|
getConfigText, getCooldownFactor, getScheduled, isScheduled, onUpdateDeferred, setConfigText, setCooldownFactor, setScheduled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_STYLESHEET_REF
public static final String SUITE_FILE_NAME
| Constructor Detail |
|---|
public DefaultDetailsReporter()
public DefaultDetailsReporter(groovy.util.AntBuilder ant)
ant - the AntBuilder that will be used to perform ant operations.
This should be specified only for testing purposes; the
default behavior is to create a new AntBuilder for each set
of operations, which results in better memory behavior.| Method Detail |
|---|
public SimpleDateFormat getDateFormatter()
public void setDateFormatter(SimpleDateFormat value)
public String getXmlStylesheetRef()
public void setXmlStylesheetRef(String value)
public boolean getPreformatDetailedMessage()
public boolean isPreformatDetailedMessage()
public void setPreformatDetailedMessage(boolean value)
public List getInfoSourceClassNames()
public void setInfoSourceClassNames(List value)
public void generateBaseReport(TestRegistry testRegistry,
String outputDir)
generateBaseReport in interface ILightestReportergenerateBaseReport in class LightestReportertestRegistry - the registry contains all known information about
pending tests.
public void updateReport(ISuite suite,
TestRegistry testRegistry,
String outputDir)
updateReport in interface ILightestReporterupdateReport in class LightestReportersuite - the suite that is about to runtestRegistry - the registry contains all known information about
pending and completed tests
public void updateReport(LightestTestResult result,
TestRegistry testRegistry,
List xmlSuites,
List suites,
String outputDir)
updateReport in interface ILightestReporterupdateReport in class LightestReporterresult - testRegistry - outputDir - protected List getInfoSources()
protected groovy.lang.Closure getTaskResultMarkup(ITaskResult taskResult)
protected Map getTaskResultAttributes(ITaskResult taskResult)
protected String getStatusString(int testResultStatus)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class LightestReporterpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class LightestReporter
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class LightestReporterpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class LightestReporter
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LightestReporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||