Skip to content

Commit

Permalink
Merge pull request #766 from nunit/prepare317
Browse files Browse the repository at this point in the history
Prepare for 3.17 release
  • Loading branch information
OsirisTerje authored Jul 11, 2020
2 parents 697721f + 2c2d154 commit a8d2034
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ or raise an issue [![](https://img.shields.io/github/issues/nunit/NUnit3-vs-Adap

## Documentation

The [NUnit3TestAdapter wiki](https://github.com/nunit/docs/wiki/Visual-Studio-Test-Adapter) is the best place to start.
The [NUnit3TestAdapter wiki](https://docs.nunit.org/articles/vs-test-adapter/Index.html) is the best place to start.

Also check the [release notes](https://github.com/nunit/docs/wiki/Adapter-Release-Notes).
Also check the [release notes](https://docs.nunit.org/articles/vs-test-adapter/Adapter-Release-Notes.html).



Expand Down
2 changes: 1 addition & 1 deletion nuget/NUnit3TestAdapter.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

Note that with this package you should not install the VSIX adapter package.
</description>
<releaseNotes>This release works with NUnit 3.0 and higher only. Also see https://github.com/nunit/docs/wiki/Adapter-Release-Notes </releaseNotes>
<releaseNotes>This release works with NUnit 3.0 and higher only. Also see https://docs.nunit.org/articles/vs-test-adapter/Adapter-Release-Notes.html </releaseNotes>
<copyright>Copyright (c) 2011-2020 Charlie Poole, 2014-2020 Terje Sandstrom</copyright>
<language>en-US</language>
<tags>test visualstudio testadapter nunit nunit3 dotnet</tags>
Expand Down
3 changes: 2 additions & 1 deletion src/NUnit.TestAdapter.Tests.Acceptance/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public static DirectoryMutex CreateMutexDirectory(string parentDirectory, string

for (var id = 1; ; id++)
{
var path = Path.Combine(parentDirectory,
var path = Path.Combine(
parentDirectory,
safeName is null ? id.ToString() :
id == 1 ? safeName :
safeName + "_" + id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class IsolatedWorkspace : IDisposable

public IsolatedWorkspace(DirectoryMutex directoryMutex, ToolResolver toolResolver)
{
this.directoryMutex = directoryMutex ?? throw new ArgumentNullException(nameof(toolResolver)); ;
this.directoryMutex = directoryMutex ?? throw new ArgumentNullException(nameof(toolResolver));
this.toolResolver = toolResolver ?? throw new ArgumentNullException(nameof(toolResolver));
}

Expand Down
2 changes: 1 addition & 1 deletion src/NUnit3TestAdapterInstall/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Description xml:space="preserve">NUnit 3 adapter for running tests in Visual Studio. Works with NUnit 3.x.
For running NUnit 2 tests, use the NUnit 2 adapter.
Note that use of VSIX Test adapters are deprecated in VS 2019, we recommend you to use the nuget versions of the adapter. </Description>
<MoreInfo>https://github.com/nunit/docs/wiki/Visual-Studio-Test-Adapter</MoreInfo>
<MoreInfo>https://docs.nunit.org/articles/vs-test-adapter/Index.html</MoreInfo>
<License>license.rtf</License>
<Icon>nunit_90.png</Icon>
<PreviewImage>preview.png</PreviewImage>
Expand Down
1 change: 0 additions & 1 deletion src/NUnitTestAdapter/NUnitEngine/DiscoveryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace NUnit.VisualStudio.TestAdapter.NUnitEngine
{
public class DiscoveryExtensions
{

public TestConverter TestConverter { get; private set; }

public IList<TestCase> Convert(NUnitResults discoveryResults, ITestLogger logger, string assemblyPath, IAdapterSettings settings)
Expand Down
2 changes: 1 addition & 1 deletion src/NUnitTestAdapter/NUnitEngine/NUnitTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public enum eRunState
NA,
Runnable,
Explicit
};
}

public bool IsTestCase => !IsNull && Node.Name == "test-case";
public bool IsParameterizedMethod => Type == "ParameterizedMethod";
Expand Down
1 change: 0 additions & 1 deletion src/NUnitTestAdapter/NUnitEngine/NUnitTestEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ public IEnumerable<NUnitAttachment> NUnitAttachments
return nUnitAttachments;
}
}

}


Expand Down
1 change: 0 additions & 1 deletion src/NUnitTestAdapter/NUnitEngine/NUnitTestEventTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace NUnit.VisualStudio.TestAdapter.NUnitEngine
{

public interface INUnitTestEventTestCase : INUnitTestEvent
{
NUnitFailure Failure { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,5 @@ public NUnitTestEventTestOutput(XmlNode node) : base(node)
// Notes:
// The input doesnt have any id, but used testid instead.
// Properties FullName and Name is not in use

}
}
2 changes: 1 addition & 1 deletion src/NUnitTestAdapter/NUnitTestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected TestPackage CreateTestPackage(string assemblyName, IGrouping<string, T

if (Settings.StopOnError)
package.Settings[PackageSettings.StopOnError] = true;

if (Settings.SkipNonTestAssemblies)
package.Settings[PackageSettings.SkipNonTestAssemblies] = true;

Expand Down
2 changes: 1 addition & 1 deletion src/NUnitTestAdapter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("NUnit 3 Test Adapter for Visual Studio")]
[assembly: AssemblyDescription("A package containing the NUnit 3 TestAdapter for Visual Studio 2012 onwards. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your TFS server.\r\n \r\nNote that this package ONLY contains the adapter, not the NUnit framework. You must also get the framework. You only need one such package for a solution. \r\n\r\nThe package works with Visual Studio 2012 and newer.\r\n")]
[assembly: AssemblyDescription("A package containing the NUnit 3 TestAdapter for Visual Studio 2012 onwards. With this package you don't need to install the VSIX adapter package, and you don't need to upload the adapter to your Azure DevOps server.\r\n \r\nNote that this package ONLY contains the adapter, not the NUnit framework. You must also get the framework. You only need one such package for a solution. \r\n\r\nThe package works with Visual Studio 2012 and newer.\r\n")]
[assembly: AssemblyCompany("NUnit Project")]
[assembly: AssemblyProduct("NUnit3TestAdapter")]
[assembly: AssemblyCopyright("Copyright © 2011-2020 Charlie Poole, 2014-2020 Terje Sandstrom")]
Expand Down
2 changes: 1 addition & 1 deletion src/NUnitTestAdapter/TestConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private TestCase MakeTestCaseFromXmlNode(NUnitTestCase testNode)
new Uri(NUnitTestAdapter.ExecutorUri),
_sourceAssembly)
{
DisplayName = CreateDisplayName(fullyQualifiedName,testNode.Name), // .Replace(".",":"), //"N:Name -> MS:DisplayName", // testNode.Name,
DisplayName = CreateDisplayName(fullyQualifiedName, testNode.Name), // .Replace(".",":"), //"N:Name -> MS:DisplayName", // testNode.Name,
CodeFilePath = null,
LineNumber = 0,
};
Expand Down
4 changes: 0 additions & 4 deletions src/NUnitTestAdapterTests/AdapterSettingsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ public void MapWarningToTestsFailing(string setting)
public void MapWarningToTestsDefault()
{
_settings.Load("");

}

[TestCase("Name", DisplayNameOptions.Name)]
Expand Down Expand Up @@ -432,9 +431,6 @@ public void TestDefaults()
Assert.That(_settings.DisplayName, Is.EqualTo(DisplayNameOptions.Name));
Assert.That(_settings.MapWarningTo, Is.EqualTo(TestOutcome.Skipped));
});

}


}
}
2 changes: 0 additions & 2 deletions src/NUnitTestAdapterTests/TestConverterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Xml;
//using System.Xml;

using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using NSubstitute;
using NUnit.Framework;
Expand Down

0 comments on commit a8d2034

Please sign in to comment.