Implementation of ITestAssemblyRunner
More...
|
| NUnitTestAssemblyRunner (ITestAssemblyBuilder builder) |
| Initializes a new instance of the NUnitTestAssemblyRunner class. More...
|
|
ITest | Load (string assemblyName, IDictionary settings) |
| Loads the tests found in an Assembly More...
|
|
ITest | Load (Assembly assembly, IDictionary settings) |
| Loads the tests found in an Assembly More...
|
|
int | CountTestCases (ITestFilter filter) |
| Count Test Cases using a filter More...
|
|
ITestResult | Run (ITestListener listener, ITestFilter filter) |
| Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses. More...
|
|
void | RunAsync (ITestListener listener, ITestFilter filter) |
| Run selected tests asynchronously, notifying the listener interface as it progresses. More...
|
|
bool | WaitForCompletion (int timeout) |
| Wait for the ongoing run to complete. More...
|
|
void | StartRun (ITestListener listener) |
| Initiate the test run. More...
|
|
void | StopRun (bool force) |
| Signal any test run that is in process to stop. Return without error if no test is running. More...
|
|
ITest | Load (string assemblyName, System.Collections.IDictionary settings) |
| Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded. More...
|
|
ITest | Load (Assembly assembly, System.Collections.IDictionary settings) |
| Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded. More...
|
|
|
static Logger | log = InternalTrace.GetLogger("DefaultTestAssemblyRunner") |
|
ITest NUnit.Framework.Api.NUnitTestAssemblyRunner.Load |
( |
string |
assemblyName, |
|
|
IDictionary |
settings |
|
) |
| |
|
inline |
ITest NUnit.Framework.Api.NUnitTestAssemblyRunner.Load |
( |
Assembly |
assembly, |
|
|
IDictionary |
settings |
|
) |
| |
|
inline |
int NUnit.Framework.Api.NUnitTestAssemblyRunner.CountTestCases |
( |
ITestFilter |
filter | ) |
|
|
inline |
Run selected tests and return a test result. The test is run synchronously, and the listener interface is notified as it progresses.
- Parameters
-
listener | Interface to receive EventListener notifications. |
filter | A test filter used to select tests to be run |
- Returns
Implements NUnit.Framework.Api.ITestAssemblyRunner.
bool NUnit.Framework.Api.NUnitTestAssemblyRunner.WaitForCompletion |
( |
int |
timeout | ) |
|
|
inline |
void NUnit.Framework.Api.NUnitTestAssemblyRunner.StartRun |
( |
ITestListener |
listener | ) |
|
|
inline |
void NUnit.Framework.Api.NUnitTestAssemblyRunner.StopRun |
( |
bool |
force | ) |
|
|
inline |
Signal any test run that is in process to stop. Return without error if no test is running.
- Parameters
-
force | If true, kill any test-running threads |
Implements NUnit.Framework.Api.ITestAssemblyRunner.
void NUnit.Framework.Api.NUnitTestAssemblyRunner.CreateTestExecutionContext |
( |
ITestListener |
listener | ) |
|
|
inlineprivate |
void NUnit.Framework.Api.NUnitTestAssemblyRunner.OnRunCompleted |
( |
object |
sender, |
|
|
EventArgs |
e |
|
) |
| |
|
inlineprivate |
Handle the the Completed event for the top level work item
int NUnit.Framework.Api.NUnitTestAssemblyRunner.CountTestCases |
( |
ITest |
test, |
|
|
ITestFilter |
filter |
|
) |
| |
|
inlineprivate |
static int NUnit.Framework.Api.NUnitTestAssemblyRunner.GetInitialSeed |
( |
IDictionary |
settings | ) |
|
|
inlinestaticprivate |
static void NUnit.Framework.Api.NUnitTestAssemblyRunner.PauseBeforeRun |
( |
| ) |
|
|
inlinestaticprivate |
Logger NUnit.Framework.Api.NUnitTestAssemblyRunner.log = InternalTrace.GetLogger("DefaultTestAssemblyRunner") |
|
staticprivate |
AutoResetEvent NUnit.Framework.Api.NUnitTestAssemblyRunner._runComplete = new AutoResetEvent(false) |
|
private |
TextWriter NUnit.Framework.Api.NUnitTestAssemblyRunner._savedOut |
|
private |
TextWriter NUnit.Framework.Api.NUnitTestAssemblyRunner._savedErr |
|
private |
ITest NUnit.Framework.Api.NUnitTestAssemblyRunner.LoadedTest |
|
getprivate set |
The tree of tests that was loaded by the builder
ITestResult NUnit.Framework.Api.NUnitTestAssemblyRunner.Result |
|
get |
The test result, if a run has completed
bool NUnit.Framework.Api.NUnitTestAssemblyRunner.IsTestLoaded |
|
get |
Indicates whether a test is loaded
bool NUnit.Framework.Api.NUnitTestAssemblyRunner.IsTestRunning |
|
get |
Indicates whether a test is running
bool NUnit.Framework.Api.NUnitTestAssemblyRunner.IsTestComplete |
|
get |
Indicates whether a test run is complete
IDictionary NUnit.Framework.Api.NUnitTestAssemblyRunner.Settings |
|
getsetprivate |
Our settings, specified when loading the assembly
WorkItem NUnit.Framework.Api.NUnitTestAssemblyRunner.TopLevelWorkItem |
|
getsetprivate |
The top level WorkItem created for the assembly as a whole
The TestExecutionContext for the top level WorkItem
The documentation for this class was generated from the following file: