Table of Contents

Class XunitTestAssemblyRunner

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

The test assembly runner for xUnit.net v3 tests.

public class XunitTestAssemblyRunner : XunitTestAssemblyRunnerBase<XunitTestAssemblyRunnerContext, IXunitTestAssembly, IXunitTestCollection, IXunitTestCase>
Inheritance
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

XunitTestAssemblyRunner

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

testAssembly IXunitTestAssembly

The test assembly to be executed.

testCases IReadOnlyCollection<IXunitTestCase>

The test cases associated with the test assembly.

executionMessageSink IMessageSink

The message sink to send execution messages to.

executionOptions ITestFrameworkExecutionOptions

The execution options to use when running tests.

cancellationToken CancellationToken

The cancellation token used to cancel test execution.

Returns

ValueTask<RunSummary>