Method SkipTestCases
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
SkipTestCases(IMessageBus, CancellationTokenSource, IReadOnlyCollection<ITestCase>, string, bool, bool, bool, bool, bool)
Skips a set of test cases with the given skip reason.
public static RunSummary SkipTestCases(IMessageBus messageBus, CancellationTokenSource cancellationTokenSource, IReadOnlyCollection<ITestCase> testCases, string skipReason, bool sendTestCollectionMessages = false, bool sendTestClassMessages = false, bool sendTestMethodMessages = false, bool sendTestCaseMessages = true, bool sendTestMessages = true)
Parameters
messageBusThe message bus to send the messages to
cancellationTokenSourceCancellationTokenSourceThe cancellation token source to cancel if requested
testCasesIReadOnlyCollection<ITestCase>The test cases to fail
skipReasonstringThe skip reason
sendTestCollectionMessagesboolSet to
trueto send ITestCollectionStarting and ITestCollectionFinished messages; set tofalseto skipsendTestClassMessagesboolSet to
trueto send ITestClassStarting and ITestClassFinished messages; set tofalseto skipsendTestMethodMessagesboolSet to
trueto send ITestMethodStarting and ITestMethodFinished messages; set tofalseto skipsendTestCaseMessagesboolSet to
trueto send ITestCaseStarting and ITestCaseFinished messages; set tofalseto skipsendTestMessagesboolSet to
trueto send ITestStarting and ITestFinished messages; set tofalseto skip