Table of Contents

Method RegisterMicrosoftTestingPlatformResultWriter

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

RegisterMicrosoftTestingPlatformResultWriter(string, IMicrosoftTestingPlatformResultWriter)

Adds a Microsoft Testing Platform result writer registration.

public static void RegisterMicrosoftTestingPlatformResultWriter(string id, IMicrosoftTestingPlatformResultWriter resultWriter)

Parameters

id string

The ID of the result writer

resultWriter

The result writer

Remarks

The ID is used to construct the MTP command line options "--xunit-result-" and "--xunit-result--filename", and therefore must be unique.