Table of Contents

Class JsonReporter

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

An implementation of IRunnerReporter that reports results as individual JSON objects on the console.

public class JsonReporter : IRunnerReporter
Inheritance
JsonReporter
Implements
Inherited Members

Properties

CanBeEnvironmentallyEnabled

Gets a value which indicates if it's possible for this reporter to be environmentally enabled.

Description

Gets the description of the reporter. This is typically used when showing the user the invocation option for the reporter.

ForceNoLogo

Gets a value which indicates whether this runner wishes to force no logo. Useful for runners which are designed for purely parseable output (for example, JsonReporter).

IsEnvironmentallyEnabled

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

RunnerSwitch

Gets a value which indicates a runner switch which can be used to explicitly enable the runner. If the return value is null, then the reported can only be environmentally enabled (implicitly). This value is used either as a command line switch (with the console or .NET CLI runner) or as a runner configuration value (with the MSBuild runner).

Methods

CreateMessageHandler(IRunnerLogger, IMessageSink?)

Creates a message handler that will report messages for the given test assembly.