IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Summary description for ProcessRunner. More...
Public Member Functions | |
ProcessRunner (IServiceLocator services, TestPackage package) | |
override void | UnloadPackage () |
Unload any loaded TestPackage and clear the reference to the remote runner. More... | |
override void | StopRun (bool force) |
Cancel the ongoing test run. If no test is running, the call is ignored. More... | |
![]() | |
AbstractTestRunner (IServiceLocator services, TestPackage package) | |
TestEngineResult | Explore (TestFilter filter) |
Explores the TestPackage and returns information about the tests found. Loads the package if not done previously. More... | |
TestEngineResult | Load () |
Loads the TestPackage for exploration or execution, saving the result. More... | |
TestEngineResult | Reload () |
Reload the currently loaded test package, saving the result. More... | |
void | Unload () |
Unload any loaded TestPackage. More... | |
int | CountTestCases (TestFilter filter) |
Count the test cases that would be run under the specified filter, loading the TestPackage if it is not already loaded. More... | |
TestEngineResult | Run (ITestEventListener listener, TestFilter filter) |
Run the tests in the TestPackage, loading the package if this has not already been done. 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 TestPackage. The tests are run asynchronously and the listener interface is notified as it progresses. Loads the TestPackage if not already loaded. More... | |
void | Dispose () |
Protected Member Functions | |
override TestEngineResult | ExploreTests (TestFilter filter) |
Explore a TestPackage and return information about the tests found. More... | |
override TestEngineResult | LoadPackage () |
Load a TestPackage for possible execution More... | |
override int | CountTests (TestFilter filter) |
Count the test cases that would be run under the specified filter. More... | |
override TestEngineResult | RunTests (ITestEventListener listener, TestFilter filter) |
Run the tests in a loaded TestPackage More... | |
override AsyncTestEngineResult | RunTestsAsync (ITestEventListener listener, TestFilter filter) |
Start a run of the tests in the loaded TestPackage, returning immediately. The tests are run asynchronously and the listener interface is notified as it progresses. More... | |
override void | Dispose (bool disposing) |
![]() | |
virtual TestEngineResult | ReloadPackage () |
Reload the currently loaded test package. Overridden in derived classes to take any additional action. More... | |
bool | IsProjectPackage (TestPackage package) |
Properties | |
RuntimeFramework | RuntimeFramework [get, private set] |
![]() | |
IServiceLocator | Services [get, private set] |
Our Service Context More... | |
IProjectService | ProjectService [get, private set] |
ITestRunnerFactory | TestRunnerFactory [get, private set] |
TestPackage | TestPackage [get, set] |
The TestPackage for which this is the runner More... | |
TestEngineResult | LoadResult [get, set] |
The result of the last call to LoadPackage More... | |
bool | IsPackageLoaded [get] |
Gets an indicator of whether the package has been loaded. More... | |
Private Member Functions | |
TestEngineResult | CreateFailedResult (Exception e) |
Private Attributes | |
const int | NORMAL_TIMEOUT = 30000 |
const int | DEBUG_TIMEOUT = NORMAL_TIMEOUT * 10 |
ITestAgent | _agent |
ITestEngineRunner | _remoteRunner |
TestAgency | _agency |
Static Private Attributes | |
static readonly Logger | log = InternalTrace.GetLogger(typeof(ProcessRunner)) |
Additional Inherited Members | |
![]() | |
const string | TEST_RUN_ELEMENT = "test-run" |
bool | _disposed = false |
Summary description for ProcessRunner.
|
inline |
|
inlineprotectedvirtual |
Explore a TestPackage and return information about the tests found.
filter | A TestFilter used to select tests |
Implements NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.Explore().
|
inlineprotectedvirtual |
Load a TestPackage for possible execution
Implements NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestAgent.CreateRunner(), NUnit.Common.PackageSettings.DebugAgent, NUnit.Engine.Services.TestAgency.GetAgent(), NUnit.Engine.ITestEngineRunner.Load(), NUnit.Engine.TestPackage.Name, and NUnit.Common.PackageSettings.PauseBeforeRun.
|
inlinevirtual |
Unload any loaded TestPackage and clear the reference to the remote runner.
Reimplemented from NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.Unload().
|
inlineprotectedvirtual |
Count the test cases that would be run under the specified filter.
filter | A TestFilter |
Implements NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.CountTestCases().
|
inlineprotectedvirtual |
Run the tests in a loaded TestPackage
listener | An ITestEventHandler to receive events |
filter | A TestFilter used to select tests |
Implements NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.Run().
|
inlineprotectedvirtual |
Start a run of the tests in the loaded TestPackage, returning immediately. The tests are run asynchronously and the listener interface is notified as it progresses.
listener | An ITestEventHandler to receive events |
filter | A TestFilter used to select tests |
Reimplemented from NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.RunAsync().
|
inlinevirtual |
Cancel the ongoing test run. If no test is running, the call is ignored.
force | If true, cancel any ongoing test threads, otherwise wait for them to complete. |
Implements NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestEngineRunner.StopRun().
|
inlineprotectedvirtual |
Reimplemented from NUnit.Engine.Runners.AbstractTestRunner.
References NUnit.Engine.ITestAgent.Stop().
|
inlineprivate |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
getprivate set |