Skip to content

Commit

Permalink
Add support for failSkips in configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jun 8, 2023
1 parent 8b9c453 commit 51bb552
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Versions.props
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<MicrosoftNetCoreAppRefVersion>6.0.11</MicrosoftNetCoreAppRefVersion>
<MicrosoftNetTestSdkVersion>17.6.0</MicrosoftNetTestSdkVersion>
<MicrosoftNetTestSdkVersion>17.6.2</MicrosoftNetTestSdkVersion>
<MicrosoftSourceLinkGitHubVersion>1.1.1</MicrosoftSourceLinkGitHubVersion>
<MicrosoftTestPlatformObjectModelVersion>17.6.0</MicrosoftTestPlatformObjectModelVersion>
<MicrosoftTestPlatformObjectModelVersion>17.6.2</MicrosoftTestPlatformObjectModelVersion>
<NerdbankGitVersioningVersion>3.6.133</NerdbankGitVersioningVersion>
<NSubstituteVersion>5.0.0</NSubstituteVersion>
<TunnelVisionLabsReferenceAssemblyAnnotatorVersion>1.0.0-alpha.160</TunnelVisionLabsReferenceAssemblyAnnotatorVersion>
<XunitVersion>2.5.0-pre.22</XunitVersion>
<XunitVersion>2.5.0-pre.24</XunitVersion>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions src/xunit.runner.visualstudio/VsTestRunner.cs
Expand Up @@ -567,6 +567,8 @@ static bool IsXunitPackageReferenced(string assemblyFileName)
IExecutionSink resultsSink = vsExecutionSink;
if (longRunningSeconds > 0)
resultsSink = new DelegatingLongRunningTestDetectionSink(resultsSink, TimeSpan.FromSeconds(longRunningSeconds), diagnosticSink);
if (configuration.FailSkipsOrDefault)
resultsSink = new DelegatingFailSkipSink(resultsSink);

controller.RunTests(testCases, resultsSink, executionOptions);
resultsSink.Finished.WaitOne();
Expand Down
1 change: 1 addition & 0 deletions test/xunit.runner.json
@@ -1,4 +1,5 @@
{
"$schema": "https://xunit.net/schema/v2.5/xunit.runner.schema.json",
"diagnosticMessages": true,
"methodDisplay": "classAndMethod",
"parallelizeAssembly": true
Expand Down

0 comments on commit 51bb552

Please sign in to comment.