com.googlecode.lightest.core
Interface ITestRunner

All Known Implementing Classes:
TestRunner

public interface ITestRunner


Method Summary
 void configure(File configFile)
          Configures the runner by wiring together dependencies as specified by the configuration file.
 void configure(String configText)
          Configures the runner by wiring together dependencies as specified by the configuration text.
 List getTestNGListeners()
          Returns a modifiable List of ITestNGListener objects that will be registered directly with the underlying runner.
 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.
 

Method Detail

getTestNGListeners

List getTestNGListeners()
Returns a modifiable List of ITestNGListener objects that will be registered directly with the underlying runner. Note that this List may be modified / clobbered if configure() is called.


configure

void configure(File configFile)
Configures the runner by wiring together dependencies as specified by the configuration file.

Parameters:
configFile -

configure

void configure(String configText)
Configures the runner by wiring together dependencies as specified by the configuration text.

Parameters:
configText -

run

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. The contextual class loader of the TestNG run is a GroovyClassLoader that is aware of any task classpaths specified in the Configuration.

Parameters:
paths - 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 possible


Copyright © 2009. All Rights Reserved.