Method OnTestAssemblyCleanupFailure
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestAssemblyCleanupFailure(TContext, Exception)
This method is called when an exception was thrown while cleaning up, after the test assembly has run. By default this sends TestAssemblyCleanupFailure.
protected virtual ValueTask<bool> OnTestAssemblyCleanupFailure(TContext ctxt, Exception exception)
Parameters
ctxtTContextThe context that describes the current test assembly
exceptionExceptionThe exception that caused the cleanup failure (may be an instance of AggregateException if more than one exception occurred).
Returns
Remarks
This method runs during CleaningUp and any exceptions thrown are
converted into fatal exception messages (via IErrorMessage) and sent to the message
bus in ctxt.