Class TestRunner
Executor of tests
Inheritance
System.Object
TestRunner
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NBench.Sdk
Assembly: NBench.dll
Syntax
public class TestRunner
Remarks
Will be created in separated appDomain therefor it have to be marshaled.
Constructors
TestRunner(TestPackage)
Initializes a new instance of the test runner.
Declaration
public TestRunner(TestPackage package)
Parameters
Type | Name | Description |
---|---|---|
TestPackage | package | The test package to be executed |
Fields
IsMono
Can't apply some of our optimization tricks if running Mono, due to need for elevated permissions
Declaration
public static readonly bool IsMono
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateOutput()
Creates the benchmark output writer
Declaration
protected virtual IBenchmarkOutput CreateOutput()
Returns
Type | Description |
---|---|
IBenchmarkOutput |
Execute()
Executes the tests
Declaration
public TestRunnerResult Execute()
Returns
Type | Description |
---|---|
TestRunnerResult | True if all tests passed. |
Run(TestPackage)
Executes the test package.
Declaration
public static TestRunnerResult Run(TestPackage package)
Parameters
Type | Name | Description |
---|---|---|
TestPackage | package | The test package to execute. |
Returns
Type | Description |
---|---|
TestRunnerResult |
Remarks
Creates a new instance of TestRunner and executes the tests.
SetProcessPriority(Boolean)
Initializes the process and thread
Declaration
public static void SetProcessPriority(bool concurrent)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | concurrent |