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
testCollectionThe test collection to be run.
testCasesIReadOnlyCollection<IXunitTestCase>The test cases to be run. Cannot be empty.
explicitOptionA flag to indicate how explicit tests should be treated.
messageBusThe message bus to report run status to.
testCaseOrdererThe test case orderer that was applied at the assembly level.
aggregatorThe exception aggregator used to run code and collection exceptions.
cancellationTokenSourceCancellationTokenSourceThe task cancellation token source, used to cancel the test run.
assemblyFixtureMappingsThe mapping manager for assembly fixtures.