Table of Contents

Method RunTestClass

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

RunTestClass(XunitTestCollectionRunnerContext, IXunitTestClass?, IReadOnlyCollection<IXunitTestCase>)

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

protected override ValueTask<RunSummary> RunTestClass(XunitTestCollectionRunnerContext ctxt, IXunitTestClass? testClass, IReadOnlyCollection<IXunitTestCase> testCases)

Parameters

ctxt

The context that describes the current test collection

testClass

The test class to be run. May be null for test cases that do not support classes and methods.

testCases IReadOnlyCollection<IXunitTestCase>

The test cases to be run.

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 collection cleanup failure.