Table of Contents

Method RunTestCollection

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

RunTestCollection(TContext, TTestCollection, IReadOnlyCollection<TTestCase>)

Override this method to run the tests in an individual test collection.

protected abstract ValueTask<RunSummary> RunTestCollection(TContext ctxt, TTestCollection testCollection, IReadOnlyCollection<TTestCase> testCases)

Parameters

ctxt TContext

The context that describes the current test assembly

testCollection TTestCollection

The test collection that is being run.

testCases IReadOnlyCollection<TTestCase>

The test cases that belong to the test collection.

Returns

ValueTask<RunSummary>

Returns summary information about the tests that were run.

Remarks

This method runs during Running and any exceptions thrown will contribute to test assembly cleanup failure.