com.googlecode.lightest.core
Class PendingReporter
java.lang.Object
com.googlecode.lightest.core.LightestReporter
com.googlecode.lightest.core.PendingReporter
- All Implemented Interfaces:
- ILightestReporter, groovy.lang.GroovyObject
public class PendingReporter
- extends LightestReporter
- implements groovy.lang.GroovyObject
Maintains an XML file that represents the tests that have not yet been run.
This reporter may be invoked throughout the test suite execution.
|
Method Summary |
protected void |
copyAttributes(XmlTest source,
XmlTest target)
|
groovy.lang.MetaClass |
getMetaClass()
|
protected Map |
getMethodsByClass(Collection testInstances)
|
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 registry,
List xmlSuites,
List suites,
String outputDirectory)
If there are any pending tests, an XML suite file representing those
tests, by class, is created in the test suite's output directory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TESTNG_PENDING_XML
public static final String TESTNG_PENDING_XML
- the name of the generated file
PendingReporter
public PendingReporter()
updateReport
public void updateReport(LightestTestResult result,
TestRegistry registry,
List xmlSuites,
List suites,
String outputDirectory)
- If there are any pending tests, an XML suite file representing those
tests, by class, is created in the test suite's output directory.
Otherwise, any existing pending file is deleted. This is done for every
suite.
- Specified by:
updateReport in interface ILightestReporter- Overrides:
updateReport in class LightestReporter
- Parameters:
result - not usedxmlSuites - suites - outputDirectory - registry - the registry contains all known information about
pending and completed tests
getMethodsByClass
protected Map getMethodsByClass(Collection testInstances)
copyAttributes
protected void copyAttributes(XmlTest source,
XmlTest target)
- See Also:
FailedReporter.createXmlTest(org.testng.ITestContext, java.util.List, org.testng.xml.XmlTest)
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.