Method OnTestCollectionFinished
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
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.
protected override ValueTask<bool> OnTestCollectionFinished(TContext ctxt, RunSummary summary)
Parameters
ctxtTContextThe context that describes the current test collection
summaryThe execution summary for the test collection
Returns
Remarks
This method runs during CleaningUp and any exceptions thrown will be reported as top-level exceptions. Any exceptions that are present in the aggregator (presumably from derived implementations of this method, RunTestClasses(TContext, Exception?), or RunTestClass(TContext, TTestClass?, IReadOnlyCollection<TTestCase>)) will invoke OnTestCollectionCleanupFailure(TContext, Exception).