IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Engine.ITestRunner Interface Reference

Interface implemented by all test runners. More...

+ Inheritance diagram for NUnit.Engine.ITestRunner:
+ Collaboration diagram for NUnit.Engine.ITestRunner:

Public Member Functions

XmlNode Load ()
 Load a TestPackage for possible execution More...
 
void Unload ()
 Unload any loaded TestPackage. If none is loaded, the call is ignored. More...
 
XmlNode Reload ()
 Reload the current TestPackage More...
 
int CountTestCases (TestFilter filter)
 Count the test cases that would be run under the specified filter. More...
 
XmlNode Run (ITestEventListener listener, TestFilter filter)
 Run the tests in the loaded TestPackage and return a test result. The tests are run synchronously and the listener interface is notified as it progresses. More...
 
ITestRun RunAsync (ITestEventListener listener, TestFilter filter)
 Start a run of the tests in the loaded TestPackage. The tests are run asynchronously and the listener interface is notified as it progresses. More...
 
void StopRun (bool force)
 Cancel the ongoing test run. If no test is running, the call is ignored. More...
 
XmlNode Explore (TestFilter filter)
 Explore a loaded TestPackage and return information about the tests found. More...
 

Properties

bool IsTestRunning [get]
 Get a flag indicating whether a test is running More...
 

Detailed Description

Interface implemented by all test runners.

Member Function Documentation

XmlNode NUnit.Engine.ITestRunner.Load ( )

Load a TestPackage for possible execution

Returns
An XmlNode representing the loaded package.

This method is normally optional, since Explore and Run call it automatically when necessary. The method is kept in order to make it easier to convert older programs that use it.

Implemented in NUnit.Engine.Runners.MasterTestRunner.

void NUnit.Engine.ITestRunner.Unload ( )

Unload any loaded TestPackage. If none is loaded, the call is ignored.

XmlNode NUnit.Engine.ITestRunner.Reload ( )

Reload the current TestPackage

Returns
An XmlNode representing the loaded package.

Implemented in NUnit.Engine.Runners.MasterTestRunner.

int NUnit.Engine.ITestRunner.CountTestCases ( TestFilter  filter)

Count the test cases that would be run under the specified filter.

Parameters
filterA TestFilter
Returns
The count of test cases
XmlNode NUnit.Engine.ITestRunner.Run ( ITestEventListener  listener,
TestFilter  filter 
)

Run the tests in the loaded TestPackage and return a test result. The tests are run synchronously and the listener interface is notified as it progresses.

Parameters
listenerThe listener that is notified as the run progresses
filterA TestFilter used to select tests
Returns
An XmlNode giving the result of the test execution

Implemented in NUnit.Engine.Runners.MasterTestRunner.

ITestRun NUnit.Engine.ITestRunner.RunAsync ( ITestEventListener  listener,
TestFilter  filter 
)

Start a run of the tests in the loaded TestPackage. The tests are run asynchronously and the listener interface is notified as it progresses.

Parameters
listenerThe listener that is notified as the run progresses
filterA TestFilter used to select tests
Returns

Implemented in NUnit.Engine.Runners.MasterTestRunner.

void NUnit.Engine.ITestRunner.StopRun ( bool  force)

Cancel the ongoing test run. If no test is running, the call is ignored.

Parameters
forceIf true, cancel any ongoing test threads, otherwise wait for them to complete.

Implemented in NUnit.Engine.Runners.MasterTestRunner.

XmlNode NUnit.Engine.ITestRunner.Explore ( TestFilter  filter)

Explore a loaded TestPackage and return information about the tests found.

Parameters
filterThe TestFilter to be used in selecting tests to explore.
Returns
An XmlNode representing the tests found.

Implemented in NUnit.Engine.Runners.MasterTestRunner.

Property Documentation

bool NUnit.Engine.ITestRunner.IsTestRunning
get

Get a flag indicating whether a test is running


The documentation for this interface was generated from the following file: