IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
FrameworkController provides a facade for use in loading, browsing and running tests without requiring a reference to the NUnit framework. All calls are encapsulated in constructors for this class and its nested classes, which only require the types of the Common Type System as arguments. More...
Classes | |
class | CountTestsAction |
CountTestsAction counts the number of test cases in the loaded TestSuite held by the FrameworkController. More... | |
class | ExploreTestsAction |
ExploreTestsAction returns info about the tests in an assembly More... | |
class | FrameworkControllerAction |
FrameworkControllerAction is the base class for all actions performed against a FrameworkController. More... | |
class | LoadTestsAction |
LoadTestsAction loads a test into the FrameworkController More... | |
class | RunAsyncAction |
RunAsyncAction initiates an asynchronous test run, returning immediately More... | |
class | RunTestsAction |
RunTestsAction runs the loaded TestSuite held by the FrameworkController. More... | |
class | StopRunAction |
StopRunAction stops an ongoing run. More... | |
Public Member Functions | |
FrameworkController (string assemblyNameOrPath, string idPrefix, IDictionary settings) | |
Construct a FrameworkController using the default builder and runner. More... | |
FrameworkController (Assembly assembly, string idPrefix, IDictionary settings) | |
Construct a FrameworkController using the default builder and runner. More... | |
FrameworkController (string assemblyNameOrPath, string idPrefix, IDictionary settings, string runnerType, string builderType) | |
Construct a FrameworkController, specifying the types to be used for the runner and builder. This constructor is provided for purposes of development. More... | |
FrameworkController (Assembly assembly, string idPrefix, IDictionary settings, string runnerType, string builderType) | |
Construct a FrameworkController, specifying the types to be used for the runner and builder. This constructor is provided for purposes of development. More... | |
![]() | |
override object | InitializeLifetimeService () |
Obtains a lifetime service object to control the lifetime policy for this instance. More... | |
Static Public Member Functions | |
static TNode | InsertEnvironmentElement (TNode targetNode) |
Inserts environment element More... | |
static TNode | InsertSettingsElement (TNode targetNode, IDictionary settings) |
Inserts settings element More... | |
Properties | |
ITestAssemblyBuilder | Builder [get, private set] |
Gets the ITestAssemblyBuilder used by this controller instance. More... | |
ITestAssemblyRunner | Runner [get, private set] |
Gets the ITestAssemblyRunner used by this controller instance. More... | |
string | AssemblyNameOrPath [get, private set] |
Gets the AssemblyName or the path for which this FrameworkController was created More... | |
Assembly | Assembly [get, private set] |
Gets the Assembly for which this More... | |
IDictionary | Settings [get, private set] |
Gets a dictionary of settings for the FrameworkController More... | |
Private Member Functions | |
void | Initialize (string assemblyPath, IDictionary settings) |
void | LoadTests (ICallbackEventHandler handler) |
void | ExploreTests (ICallbackEventHandler handler, string filter) |
void | RunTests (ICallbackEventHandler handler, string filter) |
void | RunAsync (ICallbackEventHandler handler, string filter) |
void | StopRun (ICallbackEventHandler handler, bool force) |
void | CountTests (ICallbackEventHandler handler, string filter) |
Static Private Member Functions | |
static string | GetProcessorArchitecture () |
static void | AddSetting (TNode settingsNode, string name, object value) |
Private Attributes | |
const string | LOG_FILE_FORMAT = "InternalTrace.{0}.{1}.log" |
Assembly | _testAssembly |
FrameworkController provides a facade for use in loading, browsing and running tests without requiring a reference to the NUnit framework. All calls are encapsulated in constructors for this class and its nested classes, which only require the types of the Common Type System as arguments.
The controller supports four actions: Load, Explore, Count and Run. They are intended to be called by a driver, which should allow for proper sequencing of calls. Load must be called before any of the other actions. The driver may support other actions, such as reload on run, by combining these calls.
|
inline |
Construct a FrameworkController using the default builder and runner.
assemblyNameOrPath | The AssemblyName or path to the test assembly |
idPrefix | A prefix used for all test ids created under this controller. |
settings | A Dictionary of settings to use in loading and running the tests |
|
inline |
Construct a FrameworkController using the default builder and runner.
assembly | The test assembly |
idPrefix | A prefix used for all test ids created under this controller. |
settings | A Dictionary of settings to use in loading and running the tests |
|
inline |
Construct a FrameworkController, specifying the types to be used for the runner and builder. This constructor is provided for purposes of development.
assemblyNameOrPath | The full AssemblyName or the path to the test assembly |
idPrefix | A prefix used for all test ids created under this controller. |
settings | A Dictionary of settings to use in loading and running the tests |
runnerType | The Type of the test runner |
builderType | The Type of the test builder |
References NUnit.Framework.Internal.Reflect.Construct().
|
inline |
Construct a FrameworkController, specifying the types to be used for the runner and builder. This constructor is provided for purposes of development.
assembly | The test assembly |
idPrefix | A prefix used for all test ids created under this controller. |
settings | A Dictionary of settings to use in loading and running the tests |
runnerType | The Type of the test runner |
builderType | The Type of the test builder |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References NUnit.Common.Guard.ArgumentNotNull().
Referenced by NUnit.Framework.Api.FrameworkController.RunAsyncAction.RunAsyncAction().
|
inlineprivate |
|
inlineprivate |
References NUnit.Common.Guard.ArgumentNotNull().
Referenced by NUnit.Framework.Api.FrameworkController.CountTestsAction.CountTestsAction().
|
inlinestatic |
Inserts environment element
targetNode | Target node |
Referenced by NUnitLite.NUnit3XmlOutputWriter.WriteXmlResultOutput().
|
inlinestaticprivate |
|
inlinestatic |
Inserts settings element
targetNode | Target node |
settings | Settings dictionary |
References NUnit.Framework.Interfaces.TNode.ChildNodes, and NUnit.Common.PackageSettings.NumberOfTestWorkers.
Referenced by NUnitLite.NUnit3XmlOutputWriter.WriteXmlResultOutput().
|
inlinestaticprivate |
|
private |
|
private |
|
getprivate set |
Gets the ITestAssemblyBuilder used by this controller instance.
The builder.
Referenced by NUnit.Framework.Api.FrameworkControllerTests.ConstructController().
|
getprivate set |
Gets the ITestAssemblyRunner used by this controller instance.
The runner.
Referenced by NUnit.Framework.Api.FrameworkControllerTests.ConstructController().
|
getprivate set |
Gets the AssemblyName or the path for which this FrameworkController was created
Referenced by NUnit.Framework.Api.FrameworkControllerTests.ConstructController().
|
getprivate set |
Gets the Assembly for which this
|
getprivate set |
Gets a dictionary of settings for the FrameworkController
Referenced by NUnit.Framework.Api.FrameworkControllerTests.ConstructController().