|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.TestRunner
public class TestRunner
The Lightest test runner.
| Constructor Summary | |
|---|---|
TestRunner()
|
|
TestRunner(InputStream _in,
PrintStream out)
|
|
TestRunner(InputStream _in,
PrintStream out,
groovy.util.AntBuilder ant)
|
|
| Method Summary | |
|---|---|
void |
configure(File configFile)
Configures the runner by wiring together dependencies as specified by the configuration file. |
void |
configure(IConfiguration config)
|
void |
configure(String configText)
Configures the runner by wiring together dependencies as specified by the configuration text. |
groovy.lang.GroovyClassLoader |
getClassLoader()
Returns the current GroovyClassLoader, which may be used by TestNG to load test and related classes. |
protected Set |
getDuplicateSuiteNames(TestNG testng)
|
TestInstanceFinder |
getFinder()
|
groovy.lang.MetaClass |
getMetaClass()
|
String |
getOutputDir()
|
Object |
getProperty(String name)
|
List |
getTestNGListeners()
Returns a modifiable List of ITestNGListener objects that will be registered directly with the underlying runner. |
protected void |
interrupt()
Prepares to enter interactive mode in response to user input. |
Object |
invokeMethod(String name,
Object args)
|
static void |
main(Object args)
|
void |
run(List paths,
boolean interactiveStart)
Executes the test suites represented by XML files, along with tests represented as Groovy files, whose paths are provided as a parameter to this method. |
void |
setFinder(TestInstanceFinder value)
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setOutputDir(String value)
|
void |
setProperty(String name,
Object value)
|
void |
setTestNGListeners(List value)
|
protected void |
startInteractiveThread()
Starts a thread that reads the runner's input stream for a directive to start interactive mode. |
protected void |
stopInteractiveThread()
Instructs the input scanning thread to stop at the next convenient time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestRunner()
public TestRunner(InputStream _in,
PrintStream out)
public TestRunner(InputStream _in,
PrintStream out,
groovy.util.AntBuilder ant)
| Method Detail |
|---|
public TestInstanceFinder getFinder()
public void setFinder(TestInstanceFinder value)
public List getTestNGListeners()
ITestRunner
getTestNGListeners in interface ITestRunnerpublic void setTestNGListeners(List value)
public String getOutputDir()
public void setOutputDir(String value)
public void configure(File configFile)
configure in interface ITestRunnerconfigFile - public void configure(String configText)
configure in interface ITestRunnerconfigText - public void configure(IConfiguration config)
public groovy.lang.GroovyClassLoader getClassLoader()
public void run(List paths,
boolean interactiveStart)
run in interface ITestRunnerpaths - paths to files that are either Lightest suite
XML files, or Groovy scripts that are
LightestTestCase's.interactiveStart - whether to start the runner in interactive
mode, if possibleprotected Set getDuplicateSuiteNames(TestNG testng)
protected void startInteractiveThread()
protected void stopInteractiveThread()
protected void interrupt()
public static void main(Object args)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||