IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
NUnitFrameworkDriver is used by the test-runner to load and run tests using the NUnit framework assembly. More...
Public Member Functions | |
NUnit3FrameworkDriver (AppDomain testDomain) | |
Construct an NUnit3FrameworkDriver More... | |
string | Load (string testAssemblyPath, IDictionary< string, object > settings) |
Loads the tests in an assembly. More... | |
int | CountTestCases (string filter) |
Count the test cases that would be executed. More... | |
string | Run (ITestEventListener listener, string filter) |
Executes the tests in an assembly. More... | |
void | StopRun (bool force) |
Cancel the ongoing test run. If no test is running, the call is ignored. More... | |
string | Explore (string filter) |
Returns information about the tests in an assembly. More... | |
Properties | |
string | ID [get, set] |
![]() | |
string | ID [get, set] |
Gets and sets the unique identifier for this driver, used to ensure that test ids are unique across drivers. More... | |
Private Member Functions | |
void | CheckLoadWasCalled () |
object | CreateObject (string typeName, params object[] args) |
Private Attributes | |
const string | NUNIT_FRAMEWORK = "nunit.framework" |
const string | LOAD_MESSAGE = "Method called without calling Load first" |
AppDomain | _testDomain |
string | _testAssemblyPath |
object | _frameworkController |
Static Private Attributes | |
static readonly string | CONTROLLER_TYPE = "NUnit.Framework.Api.FrameworkController" |
static readonly string | LOAD_ACTION = CONTROLLER_TYPE + "+LoadTestsAction" |
static readonly string | EXPLORE_ACTION = CONTROLLER_TYPE + "+ExploreTestsAction" |
static readonly string | COUNT_ACTION = CONTROLLER_TYPE + "+CountTestsAction" |
static readonly string | RUN_ACTION = CONTROLLER_TYPE + "+RunTestsAction" |
static readonly string | STOP_RUN_ACTION = CONTROLLER_TYPE + "+StopRunAction" |
static ILogger | log = InternalTrace.GetLogger("NUnitFrameworkDriver") |
NUnitFrameworkDriver is used by the test-runner to load and run tests using the NUnit framework assembly.
|
inline |
Construct an NUnit3FrameworkDriver
testDomain | The AppDomain in which to create the FrameworkController |
|
inline |
Loads the tests in an assembly.
Implements NUnit.Engine.Extensibility.IFrameworkDriver.
References NUnit.Engine.CallbackHandler.Result.
Referenced by NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.CountTestsAction_AfterLoad_ReturnsCorrectCount(), NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.Explore_AfterLoad_ReturnsRunnableSuite(), NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.Load_GoodFile_ReturnsRunnableSuite(), NUnit.Engine.Services.Tests.TestFilteringTests.LoadAssembly(), and NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.RunTestsAction_AfterLoad_ReturnsRunnableSuite().
|
inline |
Count the test cases that would be executed.
filter | An XML string representing the TestFilter to use in counting the tests |
Implements NUnit.Engine.Extensibility.IFrameworkDriver.
References NUnit.Engine.CallbackHandler.Result.
Referenced by NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.CountTestsAction_AfterLoad_ReturnsCorrectCount(), NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.CountTestsAction_WithoutLoad_ThrowsInvalidOperationException(), NUnit.Engine.Services.Tests.TestFilteringTests.UsingTestFilterBuilderAddTest(), NUnit.Engine.Services.Tests.TestFilteringTests.UsingTestFilterBuilderSelectWhere(), and NUnit.Engine.Services.Tests.TestFilteringTests.UsingXml().
|
inline |
Executes the tests in an assembly.
listener | An ITestEventHandler that receives progress notices |
filter | A filter that controls which tests are executed |
Implements NUnit.Engine.Extensibility.IFrameworkDriver.
References NUnit.Engine.CallbackHandler.Result.
Referenced by NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.RunTestsAction_AfterLoad_ReturnsRunnableSuite(), and NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.RunTestsAction_WithoutLoad_ThrowsInvalidOperationException().
|
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.Extensibility.IFrameworkDriver.
|
inline |
Returns information about the tests in an assembly.
filter | A filter indicating which tests to include |
Implements NUnit.Engine.Extensibility.IFrameworkDriver.
References NUnit.Engine.CallbackHandler.Result.
Referenced by NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.Explore_AfterLoad_ReturnsRunnableSuite(), and NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.ExploreTestsAction_WithoutLoad_ThrowsInvalidOperationException().
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
getset |