Table of Contents

Method GetTestOutput

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

GetTestOutput(TContext)

Gets any output collected from the test after execution is complete. If the test framework did not collect any output, or does not support collecting output, then it should return Empty.

protected virtual ValueTask<string> GetTestOutput(TContext ctxt)

Parameters

ctxt TContext

The context that describes the current test

Returns

ValueTask<string>

Remarks

This method runs during CleaningUp and any exceptions thrown will contribute to test cleanup failure.