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