Method OnTestFinished
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestFinished(TContext, decimal, string, string[]?)
This method is called just after the test has finished running. By default, this sends TestFinished. Override this to enable any extensibility related to test finish.
protected virtual ValueTask<bool> OnTestFinished(TContext ctxt, decimal executionTime, string output, string[]? warnings)
Parameters
ctxtTContextThe context that describes the current test
executionTimedecimalThe time spent running the test
outputstringThe output from the test
warningsstring[]The warnings that were generated during the test
Returns
Remarks
This method runs during CleaningUp and any exceptions thrown will contribute to test cleanup failure.