Table of Contents

Enum TestPipelineStage

Namespace
Xunit
Assembly
xunit.v3.core.dll

A flag to indicate which part of the test pipeline you're in. Retrieved from an instance of TestContext.

public enum TestPipelineStage

Fields

Discovery = 2

Indicates that tests are currently being discovered.

Initialization = 1

Indicates that the test pipeline is still in the initialization phase and hasn't begun work.

TestAssemblyExecution = 3

Inidicates that the test pipeline is executing a test assembly.

TestCaseExecution = 7

Inidicates that the test pipeline is executing a test case.

TestClassExecution = 5

Inidicates that the test pipeline is executing a test class.

TestCollectionExecution = 4

Inidicates that the test pipeline is executing a test collection.

TestExecution = 8

Inidicates that the test pipeline is executing a test.

TestMethodExecution = 6

Inidicates that the test pipeline is executing a test method.

Unknown = 0

Indicates an unknown state of the test pipeline, or being outside of the test pipeline.