Table of Contents

Method OnTestAssemblyStarting

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

OnTestAssemblyStarting(TContext)

This method will be called before the test assembly has started running. TBy default this sends TestAssemblyStarting. Override this to enable any extensibility related to test assembly start.

protected override ValueTask<bool> OnTestAssemblyStarting(TContext ctxt)

Parameters

ctxt TContext

The context that describes the current test assembly

Returns

ValueTask<bool>

Return true if test execution should continue; false if it should be shut down.

Remarks

This method runs during Initializing and any exceptions thrown will contribute to test assembly failure (and will prevent the test assembly from running). Even if this method records exceptions, OnTestAssemblyFinished(TContext, RunSummary) will be called.