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