IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly. More...
Public Member Functions | |
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... | |
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 | StopRun (bool force) |
Signal any test run that is in process to stop. Return without error if no test is running. More... | |
Properties | |
ITest | LoadedTest [get] |
Gets the tree of loaded tests, or null if no tests have been loaded. More... | |
ITestResult | Result [get] |
Gets the tree of test results, if the test run is completed, otherwise null. More... | |
bool | IsTestLoaded [get] |
Indicates whether a test has been loaded More... | |
bool | IsTestRunning [get] |
Indicates whether a test is currently running More... | |
bool | IsTestComplete [get] |
Indicates whether a test run is complete More... | |
The ITestAssemblyRunner interface is implemented by classes that are able to execute a suite of tests loaded from an assembly.
ITest NUnit.Framework.Api.ITestAssemblyRunner.Load | ( | string | assemblyName, |
System.Collections.IDictionary | settings | ||
) |
Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.
assemblyName | File name of the assembly to load |
settings | Dictionary of options to use in loading the test |
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_AfterLoad_ReturnsCorrectCount(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_BadFile_ReturnsZero(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_FileNotFound_ReturnsZero(), NUnitLite.TextRunner.Execute(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Load_GoodFile_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Internal.SetUpFixtureTests.runTests(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
ITest NUnit.Framework.Api.ITestAssemblyRunner.Load | ( | Assembly | assembly, |
System.Collections.IDictionary | settings | ||
) |
Loads the tests found in an Assembly, returning an indication of whether or not the load succeeded.
assembly | The assembly to load |
settings | Dictionary of options to use in loading the test |
int NUnit.Framework.Api.ITestAssemblyRunner.CountTestCases | ( | ITestFilter | filter | ) |
Count Test Cases using a filter
filter | The filter to apply |
Implemented in NUnit.Framework.Api.NUnitTestAssemblyRunner.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_AfterLoad_ReturnsCorrectCount(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_BadFile_ReturnsZero(), NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_FileNotFound_ReturnsZero(), and NUnit.Framework.Api.TestAssemblyRunnerTests.CountTestCases_WithoutLoad_ThrowsInvalidOperation().
ITestResult NUnit.Framework.Api.ITestAssemblyRunner.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.
listener | Interface to receive ITestListener notifications. |
filter | A test filter used to select tests to be run |
Implemented in NUnit.Framework.Api.NUnitTestAssemblyRunner.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.Run_WithoutLoad_ReturnsError(), NUnit.Framework.Internal.SetUpFixtureTests.runTests(), and NUnitLite.TextRunner.RunTests().
void NUnit.Framework.Api.ITestAssemblyRunner.RunAsync | ( | ITestListener | listener, |
ITestFilter | filter | ||
) |
Run selected tests asynchronously, notifying the listener interface as it progresses.
listener | Interface to receive EventListener notifications. |
filter | A test filter used to select tests to be run |
Implemented in NUnit.Framework.Api.NUnitTestAssemblyRunner.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_WithoutLoad_ReturnsError(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
bool NUnit.Framework.Api.ITestAssemblyRunner.WaitForCompletion | ( | int | timeout | ) |
Wait for the ongoing run to complete.
timeout | Time to wait in milliseconds |
Implemented in NUnit.Framework.Api.NUnitTestAssemblyRunner.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_SendsExpectedEvents(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
void NUnit.Framework.Api.ITestAssemblyRunner.StopRun | ( | bool | force | ) |
Signal any test run that is in process to stop. Return without error if no test is running.
force | If true, kill any test-running threads |
Implemented in NUnit.Framework.Api.NUnitTestAssemblyRunner.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenNoTestIsRunning_Succeeds(), NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenNoTestIsRunning_Succeeds(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
|
get |
Gets the tree of loaded tests, or null if no tests have been loaded.
Referenced by NUnitLite.TextRunner.ExploreTests().
|
get |
Gets the tree of test results, if the test run is completed, otherwise null.
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_AfterLoad_ReturnsRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_BadFile_ReturnsNonRunnableSuite(), NUnit.Framework.Api.TestAssemblyRunnerTests.RunAsync_FileNotFound_ReturnsNonRunnableSuite(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().
|
get |
Indicates whether a test has been loaded
|
get |
Indicates whether a test is currently running
|
get |
Indicates whether a test run is complete
Referenced by NUnit.Framework.Api.TestAssemblyRunnerTests.CancelRun_WhenTestIsRunning_StopsTest(), and NUnit.Framework.Api.TestAssemblyRunnerTests.StopRun_WhenTestIsRunning_StopsTest().