IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
RemoteTestAgent represents a remote agent executing in another process and communicating with NUnit by TCP. Although it is similar to a TestServer, it does not publish a Uri at which clients may connect to it. Rather, it reports back to the sponsoring TestAgency upon startup so that the agency may in turn provide it to clients for use. More...
Public Member Functions | |
RemoteTestAgent (Guid agentId, ITestAgency agency, IServiceLocator services) | |
Construct a RemoteTestAgent More... | |
override ITestEngineRunner | CreateRunner (TestPackage package) |
Creates a test runner More... | |
override bool | Start () |
Starts the agent, performing any required initialization More... | |
override void | Stop () |
Stops the agent, releasing any resources More... | |
void | WaitForStop () |
TestEngineResult | Explore (TestFilter filter) |
Explore a loaded TestPackage and return information about the tests found. More... | |
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 ongoing test run. If no test is running, the call is ignored. More... | |
![]() | |
TestAgent (Guid agentId, ITestAgency agency, IServiceLocator services) | |
Initializes a new instance of the TestAgent class. More... | |
void | Dispose () |
override object | InitializeLifetimeService () |
Overridden to cause object to live indefinitely More... | |
Properties | |
int | ProcessId [get] |
![]() | |
IServiceLocator | Services [get] |
The services available to the agent More... | |
ITestAgency | Agency [get] |
Gets a reference to the TestAgency with which this agent is associated. Returns null if the agent is not connected to an agency. More... | |
Guid | Id [get] |
Gets a Guid that uniquely identifies this agent. More... | |
![]() | |
ITestAgency | Agency [get] |
Gets the agency with which this agent is associated. More... | |
Guid | Id [get] |
Gets a Guid that uniquely identifies this agent. More... | |
Private Attributes | |
ITestEngineRunner | _runner |
TestPackage | _package |
ManualResetEvent | stopSignal = new ManualResetEvent(false) |
Static Private Attributes | |
static Logger | log = InternalTrace.GetLogger(typeof(RemoteTestAgent)) |
Additional Inherited Members | |
![]() | |
virtual void | Dispose (bool disposing) |
Dispose is overridden to stop the agent More... | |
RemoteTestAgent represents a remote agent executing in another process and communicating with NUnit by TCP. Although it is similar to a TestServer, it does not publish a Uri at which clients may connect to it. Rather, it reports back to the sponsoring TestAgency upon startup so that the agency may in turn provide it to clients for use.
|
inline |
Construct a RemoteTestAgent
|
inlinevirtual |
Creates a test runner
Implements NUnit.Engine.Agents.TestAgent.
|
inlinevirtual |
Starts the agent, performing any required initialization
true
if the agent was started successfully.Implements NUnit.Engine.Agents.TestAgent.
Referenced by NUnit.Agent.NUnitTestAgent.Main().
|
inlinevirtual |
Stops the agent, releasing any resources
Implements NUnit.Engine.Agents.TestAgent.
|
inline |
Referenced by NUnit.Agent.NUnitTestAgent.Main().
|
inline |
Explore a loaded TestPackage and return information about the tests found.
filter | Criteria used to filter the search results |
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.Explore().
|
inline |
Load a TestPackage for possible execution
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.Load().
|
inline |
Unload any loaded TestPackage. If none is loaded, the call is ignored.
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.Unload().
|
inline |
Reload the loaded test package.
InvalidOperationException | If no package is loaded. |
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.Reload().
|
inline |
Count the test cases that would be run under the specified filter.
filter | A TestFilter |
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.CountTestCases().
|
inline |
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.
listener | An ITestEventHandler to receive events |
filter | A TestFilter used to select tests |
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.Run().
|
inline |
Start a run of the tests in the loaded TestPackage. 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 |
Implements NUnit.Engine.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.RunAsync().
|
inline |
Start a run of the tests in the loaded TestPackage. 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 |
Implements NUnit.Engine.ITestEngineRunner.
|
inline |
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.ITestEngineRunner.
References NUnit.Engine.ITestEngineRunner.StopRun().
|
staticprivate |
|
private |
|
private |
|
private |
|
get |