IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
DefaultTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run either in a separate process or within the same process. More...
Public Member Functions | |
override void | StartService () |
Initialize the Service More... | |
override ITestEngineRunner | MakeTestRunner (TestPackage package) |
Returns a test runner based on the settings in a TestPackage. Any setting that is "consumed" by the factory is removed, so that downstream runners using the factory will not repeatedly create the same type of runner. More... | |
override bool | CanReuse (ITestEngineRunner runner, TestPackage package) |
Return true if the provided runner is suitable for reuse in loading the test package provided. Otherwise, return false. Runners that cannot be reused must always return false. More... | |
![]() | |
virtual void | StopService () |
Do any cleanup needed before terminating the service More... | |
void | Dispose () |
Private Member Functions | |
ProcessModel | GetTargetProcessModel (TestPackage package) |
Private Attributes | |
IProjectService | _projectService |
Additional Inherited Members | |
![]() | |
virtual void | Dispose (bool disposing) |
![]() | |
bool | _disposed = false |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get, protected set] |
Gets the ServiceStatus of this service More... | |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get] |
Gets the ServiceStatus of this service More... | |
DefaultTestRunnerFactory handles creation of a suitable test runner for a given package to be loaded and run either in a separate process or within the same process.
|
inlinevirtual |
Initialize the Service
Reimplemented from NUnit.Engine.Services.Service.
References NUnit.Engine.ServiceContext.GetService().
|
inline |
Returns a test runner based on the settings in a TestPackage. Any setting that is "consumed" by the factory is removed, so that downstream runners using the factory will not repeatedly create the same type of runner.
package | The TestPackage to be loaded and run |
Implements NUnit.Engine.ITestRunnerFactory.
References NUnit.Engine.Services.IProjectService.CanLoadFrom(), NUnit.Engine.Services.IProjectService.ExpandProjectPackage(), and NUnit.Engine.Internal.PathUtils.IsAssemblyFileType().
Referenced by NUnit.Engine.Services.Tests.DefaultTestRunnerFactoryTests.CorrectRunnerIsUsed(), and NUnit.Engine.Services.Tests.DefaultTestRunnerFactoryTests.CorrectRunnerIsUsed_InvalidExtension().
|
inline |
Return true if the provided runner is suitable for reuse in loading the test package provided. Otherwise, return false. Runners that cannot be reused must always return false.
runner | An ITestRunner to possibly be used. |
package | The TestPackage to be loaded. |
Implements NUnit.Engine.ITestRunnerFactory.
|
inlineprivate |
References NUnit.Common.PackageSettings.ProcessModel.
|
private |