Table of Contents

Method Run

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

Run(IXunitTestCollection, IReadOnlyCollection<IXunitTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)

Runs the test collection.

public ValueTask<RunSummary> Run(IXunitTestCollection testCollection, IReadOnlyCollection<IXunitTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager assemblyFixtureMappings)

Parameters

testCollection

The test collection to be run.

testCases IReadOnlyCollection<IXunitTestCase>

The test cases to be run. Cannot be empty.

explicitOption

A flag to indicate how explicit tests should be treated.

messageBus

The message bus to report run status to.

testCaseOrderer

The test case orderer that was applied at the assembly level.

aggregator

The exception aggregator used to run code and collection exceptions.

cancellationTokenSource CancellationTokenSource

The task cancellation token source, used to cancel the test run.

assemblyFixtureMappings

The mapping manager for assembly fixtures.

Returns

ValueTask<RunSummary>