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.ITestEngineRunner Interface Reference

Interface implemented by all internal test runners in the engine, allowing them to pass back TestEngineResults to any higher-level runner that calls them. More...

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

Public Member Functions

TestEngineResult Load ()
 Load a TestPackage for possible execution More...
 
void Unload ()
 Unload any loaded TestPackage. If none is loaded, the call is ignored. More...
 
TestEngineResult Reload ()
 Reload the loaded test package. More...
 
int CountTestCases (TestFilter filter)
 Count the test cases that would be run under the specified filter. More...
 
TestEngineResult 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...
 
AsyncTestEngineResult 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 StartRun (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 current test run. If no test is running, the call is ignored. More...
 
TestEngineResult Explore (TestFilter filter)
 Explore a loaded TestPackage and return information about the tests found. More...
 

Detailed Description

Interface implemented by all internal test runners in the engine, allowing them to pass back TestEngineResults to any higher-level runner that calls them.

Member Function Documentation

TestEngineResult NUnit.Engine.ITestEngineRunner.Reload ( )

Reload the loaded test package.

Returns
A TestEngineResult.
Exceptions
InvalidOperationExceptionIf no package is loaded.

Implemented in NUnit.Engine.Runners.AbstractTestRunner, NUnit.Engine.Runners.MasterTestRunner, and NUnit.Engine.Agents.RemoteTestAgent.

Referenced by NUnit.Engine.Agents.RemoteTestAgent.Reload().

int NUnit.Engine.ITestEngineRunner.CountTestCases ( TestFilter  filter)
TestEngineResult NUnit.Engine.ITestEngineRunner.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
listenerAn ITestEventHandler to receive events
filterA TestFilter used to select tests
Returns
A TestEngineResult giving the result of the test execution

Implemented in NUnit.Engine.Runners.AbstractTestRunner, NUnit.Engine.Runners.MasterTestRunner, and NUnit.Engine.Agents.RemoteTestAgent.

Referenced by NUnit.Engine.Agents.RemoteTestAgent.Run(), NUnit.Engine.Runners.MasterTestRunner.RunTests(), NUnit.Engine.Runners.AggregatingTestRunner.RunTests(), and NUnit.Engine.Runners.ProcessRunner.RunTests().

AsyncTestEngineResult NUnit.Engine.ITestEngineRunner.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
listenerAn ITestEventHandler to receive events
filterA TestFilter used to select tests
Returns
An AsyncTestEngineResult that will provide the result of the test execution

Implemented in NUnit.Engine.Runners.AbstractTestRunner, NUnit.Engine.Runners.MasterTestRunner, and NUnit.Engine.Agents.RemoteTestAgent.

Referenced by NUnit.Engine.Agents.RemoteTestAgent.RunAsync(), and NUnit.Engine.Runners.ProcessRunner.RunTestsAsync().

void NUnit.Engine.ITestEngineRunner.StartRun ( 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
listenerAn ITestEventHandler to receive events
filterA TestFilter used to select tests

Implemented in NUnit.Engine.Runners.AbstractTestRunner, and NUnit.Engine.Agents.RemoteTestAgent.

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

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