Method OnTestAssemblyFinished
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestAssemblyFinished(TContext, RunSummary)
This method will be called when the test assembly has finished running. By default this sends TestAssemblyFinished. Override this to enable any extensibility related to test assembly finish.
protected virtual ValueTask<bool> OnTestAssemblyFinished(TContext ctxt, RunSummary summary)
Parameters
ctxtTContextThe context that describes the current test assembly
summaryThe execution summary for the test assembly
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, RunTestCollections(TContext, Exception?), or RunTestCollection(TContext, TTestCollection, IReadOnlyCollection<TTestCase>)) will invoke OnTestAssemblyCleanupFailure(TContext, Exception).