Table of Contents

Class TestExecutionSummaries

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

Reports multi-assembly test execution summary information.

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

Remarks

This message does not support serialization or deserialization.

Properties

ElapsedClockTime

Gets the clock time elapsed when running the tests. This may different significantly from the sum of the times reported in the summaries, if the runner chose to run the test assemblies in parallel.

public TimeSpan ElapsedClockTime { get; set; }

Property Value

TimeSpan

SummariesByAssemblyUniqueID

Gets the summaries of all the tests run. The key is the unique ID of the test assembly; the value is the summary of test execution for that assembly.

public List<(string AssemblyUniqueID, ExecutionSummary Summary)> SummariesByAssemblyUniqueID { get; }

Property Value

List<(string AssemblyUniqueID, ExecutionSummary Summary)>

Methods

Add(string, ExecutionSummary)

Add assembly summary information.

public void Add(string assemblyUniqueID, ExecutionSummary summary)

Parameters

assemblyUniqueID string

The unique ID of the assembly

summary ExecutionSummary

The execution summary

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.