Table of Contents

Class TestAssemblyDiscoveryStarting

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Reports that runner is about to start discovery for a test assembly. This message will arrive before the test framework's Xunit.DiscoveryStarting message, and contains the project metadata associated with the discovery.

public class TestAssemblyDiscoveryStarting : IMessageSinkMessage, IJsonSerializable
Inheritance
TestAssemblyDiscoveryStarting
Implements
Inherited Members
Extension Methods

Remarks

This message does not support serialization or deserialization.

Properties

AppDomain

Gets a flag which indicates whether the tests will be discovered and run in a separate app domain.

public required AppDomainOption AppDomain { get; set; }

Property Value

AppDomainOption

Assembly

Gets information about the assembly being discovered.

public required XunitProjectAssembly Assembly { get; set; }

Property Value

XunitProjectAssembly

DiscoveryOptions

Gets the options that will be used during discovery.

public required ITestFrameworkDiscoveryOptions DiscoveryOptions { get; set; }

Property Value

ITestFrameworkDiscoveryOptions

ShadowCopy

Gets a flag which indicates whether shadow copies are being used. If app domains are not enabled, then this value is ignored.

public required bool ShadowCopy { get; set; }

Property Value

bool

Methods

ToJson()

Converts the given object to JSON.

public string? ToJson()

Returns

string

Returns the object in JSON form, if possible; returns null if the object cannot be represented in JSON form.