Class ExecutionSink
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
This is the execution sink which most runners will use, which can perform several operations (including recording XML results, detecting long running tests, failing skipped tests, failing tests with warnings, and converting the top-level discovery and execution messages into their runner counterparts).
public class ExecutionSink : IMessageSink, IDisposable
- Inheritance
-
ExecutionSink
- Implements
- Inherited Members
Constructors
- ExecutionSink(XunitProjectAssembly, ITestFrameworkDiscoveryOptions, ITestFrameworkExecutionOptions, AppDomainOption, bool, IMessageSink, ExecutionSinkOptions)
Initializes a new instance of the ExecutionSink class.
- ExecutionSink(XunitProjectAssembly, ITestFrameworkDiscoveryOptions, ITestFrameworkExecutionOptions, AppDomainOption, bool, IMessageSink, ExecutionSinkOptions, ISourceInformationProvider)
Initializes a new instance of the ExecutionSink class.
Properties
- UtcNow
Returns the current time in UTC. Overrideable for testing purposes.
Methods
- OnMessage(IMessageSinkMessage)
Reports the presence of a message on the message bus. This method should never throw exceptions.
- WaitForStopEvent(int)
Performs a Task-safe delay. Overrideable for testing purposes.