Table of Contents

Property IsEnvironmentallyEnabled

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

IsEnvironmentallyEnabled

Gets a value which indicates whether the reporter should be environmentally enabled.

public bool IsEnvironmentallyEnabled { get; }

Property Value

bool

Remarks

When a runner reporter is environmentally enabled in Microsoft Testing Platform CLI mode (or dotnet test), by default all realtime output is filtered except calls to LogRaw(string) (unless the user has specified the --xunit-info switch). Environmentally enabled reporters that require realtime console output (for example, to send formatted messages to a CI system which parses the console output) must use LogRaw(string) to ensure those messages will always be visible. All other messages will always be output to the Microsoft Testing Platform diagnostic logs, which are enabled via the --diagnostic switch.