Table of Contents

Interface IExecutionMetadata

Namespace
Xunit.Sdk

This is metadata describing the execution of a single test.

public interface IExecutionMetadata
Extension Methods

Properties

ExecutionTime

The time spent executing the test, in seconds. Will be 0 if the test was not executed.

decimal ExecutionTime { get; }

Property Value

decimal

Output

The captured output of the test. Will be Empty if there was no output.

string Output { get; }

Property Value

string

Warnings

Gets a list of the warning messages that were recorded during execution. Will be null if there were no warnings.

string[]? Warnings { get; }

Property Value

string[]