Method Run
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Run(IXunitTestClass, IReadOnlyCollection<IXunitTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)
Runs the test class.
public ValueTask<RunSummary> Run(IXunitTestClass testClass, IReadOnlyCollection<IXunitTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager collectionFixtureMappings)
Parameters
testClassThe test class 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 will be used to decide how to order the test.
aggregatorThe exception aggregator used to run code and collect exceptions.
cancellationTokenSourceCancellationTokenSourceThe task cancellation token source, used to cancel the test run.
collectionFixtureMappingsThe mapping of collection fixture types to fixtures.