-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b60599b
commit e546e93
Showing
100 changed files
with
1,024 additions
and
15,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<ILRepackVersion>2.0.33</ILRepackVersion> | ||
<MicrosoftNetCoreAppRefVersion>6.0.11</MicrosoftNetCoreAppRefVersion> | ||
<MicrosoftNetTestSdkVersion>17.10.0</MicrosoftNetTestSdkVersion> | ||
<MicrosoftSourceLinkGitHubVersion>8.0.0</MicrosoftSourceLinkGitHubVersion> | ||
<MicrosoftTestPlatformObjectModelVersion>$(MicrosoftNetTestSdkVersion)</MicrosoftTestPlatformObjectModelVersion> | ||
<NerdbankGitVersioningVersion>3.6.133</NerdbankGitVersioningVersion> | ||
<NSubstituteVersion>5.1.0</NSubstituteVersion> | ||
<TunnelVisionLabsReferenceAssemblyAnnotatorVersion>1.0.0-alpha.160</TunnelVisionLabsReferenceAssemblyAnnotatorVersion> | ||
<XunitAnalyzersVersion>1.14.0</XunitAnalyzersVersion> | ||
<XunitVersion>2.8.1</XunitVersion> | ||
<XunitAnalyzersVersion>1.15.0-pre.10</XunitAnalyzersVersion> | ||
<XunitV2Version>2.8.2-pre.12</XunitV2Version> | ||
<XunitV3Version>0.1.1-pre.470</XunitV3Version> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 21 additions & 19 deletions
40
src/xunit.runner.visualstudio/Sinks/DiagnosticMessageSink.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
using System; | ||
using Xunit.Runner.Common; | ||
|
||
namespace Xunit.Runner.VisualStudio; | ||
|
||
public class DiagnosticMessageSink : DiagnosticEventSink | ||
{ | ||
DiagnosticMessageSink() | ||
{ } | ||
|
||
public static DiagnosticMessageSink ForDiagnostics( | ||
public DiagnosticMessageSink( | ||
LoggerHelper log, | ||
string assemblyDisplayName, | ||
bool showDiagnostics) | ||
string? assemblyDisplayName = null, | ||
bool showDiagnostics = false, | ||
bool showInternalDiagnostics = false) | ||
{ | ||
var result = new DiagnosticMessageSink(); | ||
var header = assemblyDisplayName is null ? string.Empty : assemblyDisplayName + ": "; | ||
|
||
if (showDiagnostics) | ||
result.DiagnosticMessageEvent += args => log.LogWarning("{0}: {1}", assemblyDisplayName, args.Message.Message); | ||
|
||
return result; | ||
DiagnosticMessageEvent += args => log.LogWarning("{0}{1}", header, args.Message.Message); | ||
if (showInternalDiagnostics) | ||
InternalDiagnosticMessageEvent += args => log.Log("{0}", args.Message.Message); | ||
} | ||
|
||
public static DiagnosticMessageSink ForInternalDiagnostics( | ||
[Obsolete("Would like to see this collapsed")] | ||
public static DiagnosticMessageSink ForDiagnostics( | ||
LoggerHelper log, | ||
bool showDiagnostics) | ||
{ | ||
var result = new DiagnosticMessageSink(); | ||
|
||
if (showDiagnostics) | ||
result.DiagnosticMessageEvent += args => log.Log("{0}", args.Message.Message); | ||
string assemblyDisplayName, | ||
bool showDiagnostics) => | ||
new(log, assemblyDisplayName, showDiagnostics, showInternalDiagnostics: false); | ||
|
||
return result; | ||
} | ||
[Obsolete("Would like to see this collapsed")] | ||
public static DiagnosticMessageSink ForInternalDiagnostics( | ||
LoggerHelper log, | ||
bool showInternalDiagnostics) => | ||
new(log, assemblyDisplayName: null, showDiagnostics: false, showInternalDiagnostics); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
using System; | ||
using Xunit.v3; | ||
|
||
namespace Xunit.Runner.VisualStudio; | ||
|
||
internal interface IVsDiscoverySink : IMessageSinkWithTypes, IDisposable | ||
internal interface IVsDiscoverySink : _IMessageSink, IDisposable | ||
{ | ||
int Finish(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/xunit.runner.visualstudio/Sinks/VsExecutionDiscoverySink.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System; | ||
using Xunit.Runner.Common; | ||
|
||
namespace Xunit.Runner.VisualStudio; | ||
|
||
|
Oops, something went wrong.