Skip to content
This repository was archived by the owner on Dec 12, 2017. It is now read-only.

Commit e7e4401

Browse files
committed
Explanatory text for diagnostic messages
Fixes #111
1 parent 0ddcd9c commit e7e4401

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

resharper/CommonAssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
[assembly : AssemblyDescription("xUnit.net unit test provider for " + ProductInfo.Product)]
77
[assembly : AssemblyCopyright("Copyright (C) Matt Ellis")]
88
[assembly : ComVisible(false)]
9-
[assembly : AssemblyVersion("2.3.3.0")]
9+
[assembly : AssemblyVersion("2.3.4.0")]

resharper/nuget/xunitcontrib.nuspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
<metadata>
44
<id>CitizenMatt.Xunit</id>
55
<title>xUnit.net Test Support for ReSharper 10</title>
6-
<version>2.3.3</version>
6+
<version>2.3.4</version>
77
<authors>Matt Ellis</authors>
88
<owners>Matt Ellis</owners>
99
<description>A unit test provider for xUnit.net. Discovers and runs xUnit.net 1.x and 2.x tests. Includes annotations to aid ReSharper inspections and Live Templates to speed up inserting test methods and asserts.</description>
1010
<summary>A unit test provider for xUnit.net</summary>
1111
<releaseNotes>
12-
&#8226; No longer treats all public methods in abstract base classes as tests (#105)
12+
&#8226; Explanatory text on diagnostic message notification (#111)
1313

1414
From previous releases:
15+
&#8226; No longer treats all public methods in abstract base classes as tests (#105)
1516
&#8226; Now works properly with code coverage, continuous testing + dotMemoryUnit, by disabling all concurrency under these conditions
1617
&#8226; Fixed issue with discovering theories at runtime
1718
&#8226; Support for ReSharper 10 (#82)

resharper/src/runner/DiagnosticMessages.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ public string Messages
3030
public void Report(IRemoteTaskServer server)
3131
{
3232
if (HasMessages)
33-
server.ShowNotification("xUnit.net ReSharper runner reported diagnostic messages:", Messages);
33+
{
34+
string description;
35+
if (TaskExecutor.Configuration.IsInInternalDebug)
36+
description = "(This message displayed because ReSharper is in Internal mode)";
37+
else
38+
{
39+
description = "(This message displayed due to xunit configuration. See app.config or xunit.runner.json)";
40+
}
41+
description += Environment.NewLine + Environment.NewLine + Messages;
42+
server.ShowNotification("The xUnit.net ReSharper runner reported diagnostic messages:", description);
43+
}
3444
}
3545

3646
private class DiagnosticsVisitor : TestMessageVisitor

0 commit comments

Comments
 (0)