Method OnTestMethodStarting
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
OnTestMethodStarting(TContext)
This method will be called before the test method has started running. By default, this sends TestMethodStarting. Override this to enable any extensibility related to test method start.
protected virtual ValueTask<bool> OnTestMethodStarting(TContext ctxt)
Parameters
ctxtTContextThe context that describes the current test method
Returns
Remarks
This method runs during Initializing and any exceptions thrown will contribute to test method failure (and will prevent the test method from running). Even if this method records exceptions, OnTestMethodFinished(TContext, RunSummary) will be called.