Method OnTestSkipped
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestSkipped(TContext, string, decimal, string, string[]?)
This method is called when a test is skipped. By default, this sends TestSkipped.
protected virtual ValueTask<(bool Continue, TestResultState ResultState)> OnTestSkipped(TContext ctxt, string skipReason, decimal executionTime, string output, string[]? warnings)
Parameters
ctxtTContextThe context that describes the current test
skipReasonstringThe reason given for skipping the test
executionTimedecimalThe time spent running the 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 Running and any exceptions thrown will contribute to test cleanup failure.