Class XunitTestAssemblyRunner
The test assembly runner for xUnit.net v3 tests.
public class XunitTestAssemblyRunner : XunitTestAssemblyRunnerBase<XunitTestAssemblyRunnerContext, IXunitTestAssembly, IXunitTestCollection, IXunitTestCase>
- Inheritance
-
TestAssemblyRunner<XunitTestAssemblyRunnerContext, IXunitTestAssembly, IXunitTestCollection, IXunitTestCase>XunitTestAssemblyRunnerBase<XunitTestAssemblyRunnerContext, IXunitTestAssembly, IXunitTestCollection, IXunitTestCase>XunitTestAssemblyRunner
- Inherited Members
Constructors
XunitTestAssemblyRunner()
Initializes a new instance of the XunitTestAssemblyRunner class.
protected XunitTestAssemblyRunner()
Properties
Instance
Gets the singleton instance of XunitTestAssemblyRunner.
public static XunitTestAssemblyRunner Instance { get; }
Property Value
Methods
Run(IXunitTestAssembly, IReadOnlyCollection<IXunitTestCase>, IMessageSink, ITestFrameworkExecutionOptions, CancellationToken)
Runs the test assembly.
public ValueTask<RunSummary> Run(IXunitTestAssembly testAssembly, IReadOnlyCollection<IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions, CancellationToken cancellationToken)
Parameters
testAssemblyIXunitTestAssemblyThe test assembly to be executed.
testCasesIReadOnlyCollection<IXunitTestCase>The test cases associated with the test assembly.
executionMessageSinkIMessageSinkThe message sink to send execution messages to.
executionOptionsITestFrameworkExecutionOptionsThe execution options to use when running tests.
cancellationTokenCancellationTokenThe cancellation token used to cancel test execution.