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
ctxtThe context that describes the current test collection
testClassThe test class to be run. May be
nullfor test cases that do not support classes and methods.testCasesIReadOnlyCollection<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.