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

Commit

Permalink
Explanatory text for diagnostic messages
Browse files Browse the repository at this point in the history
Fixes #111
  • Loading branch information
citizenmatt committed Feb 1, 2016
1 parent 0ddcd9c commit e7e4401
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resharper/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
[assembly : AssemblyDescription("xUnit.net unit test provider for " + ProductInfo.Product)]
[assembly : AssemblyCopyright("Copyright (C) Matt Ellis")]
[assembly : ComVisible(false)]
[assembly : AssemblyVersion("2.3.3.0")]
[assembly : AssemblyVersion("2.3.4.0")]
5 changes: 3 additions & 2 deletions resharper/nuget/xunitcontrib.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
<metadata>
<id>CitizenMatt.Xunit</id>
<title>xUnit.net Test Support for ReSharper 10</title>
<version>2.3.3</version>
<version>2.3.4</version>
<authors>Matt Ellis</authors>
<owners>Matt Ellis</owners>
<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>
<summary>A unit test provider for xUnit.net</summary>
<releaseNotes>
&#8226; No longer treats all public methods in abstract base classes as tests (#105)
&#8226; Explanatory text on diagnostic message notification (#111)

From previous releases:
&#8226; No longer treats all public methods in abstract base classes as tests (#105)
&#8226; Now works properly with code coverage, continuous testing + dotMemoryUnit, by disabling all concurrency under these conditions
&#8226; Fixed issue with discovering theories at runtime
&#8226; Support for ReSharper 10 (#82)
Expand Down
12 changes: 11 additions & 1 deletion resharper/src/runner/DiagnosticMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ public string Messages
public void Report(IRemoteTaskServer server)
{
if (HasMessages)
server.ShowNotification("xUnit.net ReSharper runner reported diagnostic messages:", Messages);
{
string description;
if (TaskExecutor.Configuration.IsInInternalDebug)
description = "(This message displayed because ReSharper is in Internal mode)";
else
{
description = "(This message displayed due to xunit configuration. See app.config or xunit.runner.json)";
}
description += Environment.NewLine + Environment.NewLine + Messages;
server.ShowNotification("The xUnit.net ReSharper runner reported diagnostic messages:", description);
}
}

private class DiagnosticsVisitor : TestMessageVisitor
Expand Down

0 comments on commit e7e4401

Please sign in to comment.