Table of Contents

Class XunitTestCollectionRunnerBase<TContext, TTestCollection, TTestClass, TTestCase>

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

The test collection runner for xUnit.net v3 tests (with overridable context).

public abstract class XunitTestCollectionRunnerBase<TContext, TTestCollection, TTestClass, TTestCase> : TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase> where TContext : XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase> where TTestCollection : class, IXunitTestCollection where TTestClass : class, IXunitTestClass where TTestCase : class, IXunitTestCase

Type Parameters

TContext
TTestCollection
TTestClass
TTestCase
Inheritance
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>
XunitTestCollectionRunnerBase<TContext, TTestCollection, TTestClass, TTestCase>
Derived
Inherited Members
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.FailTestClass(TContext, TTestClass, IReadOnlyCollection<TTestCase>, Exception)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.OnTestCollectionCleanupFailure(TContext, Exception)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.OnTestCollectionFinished(TContext, RunSummary)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.OnTestCollectionStarting(TContext)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.Run(TContext)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.RunTestClasses(TContext, Exception)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.RunTestClass(TContext, TTestClass, IReadOnlyCollection<TTestCase>)
TestCollectionRunner<TContext, TTestCollection, TTestClass, TTestCase>.SetTestContext(TContext, TestEngineStatus)

Methods

GetTestCaseOrderer(TContext)

Gives an opportunity to override test case orderer. By default, this method gets the orderer from the collection definition. If this function returns null, the test case orderer passed into the constructor will be used.

OnTestCollectionFinished(TContext, RunSummary)

This method will be called when the test collection has finished running. By default this sends TestCollectionFinished. Override this to enable any extensibility related to test collection finish.

OnTestCollectionStarting(TContext)

This method will be called before the test collection has started running. By default this sends TestCollectionStarting. Override this to enable any extensibility related to test collection start.