Interface ITestPipelineStartup
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Interface implemented by developers who want to run code during test pipeline startup and shutdown. A single instance of this may be decorated with an instance of ITestPipelineStartupAttribute (typically TestPipelineStartupAttribute) at the assembly level.
public interface ITestPipelineStartup
Remarks
Unlike assembly-level fixtures, this code runs for both discovery and execution (whereas fixtures only run during execution), and it occurs at a much earlier point in the pipeline. The intention with this hook is primarily about ensuring that some essential infrastructure is in place before test discovery takes place. Activities which are only used during execution should be done with assembly-level fixtures.
Methods
- StartAsync(IMessageSink)
Indicates that the test assembly is starting up.
- StopAsync()
Inidicates that the test assembly is shutting down.