Method OnTestNotRun
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestNotRun(TContext, string, string[]?)
This method is called when a test was not run. By default, this sends TestNotRun.
protected virtual ValueTask<(bool Continue, TestResultState ResultState)> OnTestNotRun(TContext ctxt, string output, string[]? warnings)
Parameters
ctxtTContextThe context that describes the current test
outputstringThe output from the test
warningsstring[]The warnings that were generated during the test
Returns
- ValueTask<(bool Continue, TestResultState ResultState)>
Return
trueif test execution should continue;falseif it should be shut down.
Remarks
This method runs during CleaningUp and any exceptions thrown will contribute to test cleanup failure.