Skip to content

Commit 2d1b1bf

Browse files
authored
Prepare 4.3.0 (#1024)
* Prepare 4.3.0-rc.1 * updated acceptance tests * updated outputxmlmode * Update displayname * Prepare 4.3.0
1 parent da0a5c3 commit 2d1b1bf

17 files changed

+41
-13062
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2011-2020 Charlie Poole, 2014-2020 Terje Sandstrom
3+
Copyright (c) 2011-2020 Charlie Poole, 2014-2022 Terje Sandstrom
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NUnit3TestAdapter.ndproj

-13,033
This file was deleted.

NUnit3TestAdapter.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
build.ps1 = build.ps1
1515
src\Directory.Build.props = src\Directory.Build.props
1616
DisableAppDomain.runsettings = DisableAppDomain.runsettings
17-
LICENSE.txt = LICENSE.txt
17+
LICENSE = LICENSE
1818
src\native-assembly\NativeTests.dll = src\native-assembly\NativeTests.dll
1919
NuGet.Config = NuGet.Config
2020
NUnit3TestAdapter.sln.DotSettings = NUnit3TestAdapter.sln.DotSettings

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
The NUnit 3 Test Adapter runs NUnit 3.x tests in Visual Studio 2012 and newer.
44

5-
This adapter works with NUnit 3.0 and higher only. Use the NUnit 2 Adapter to run NUnit 2.x tests.
5+
66

77
You can download the latest release version ![](https://img.shields.io/github/release-date/nunit/nunit3-vs-adapter.svg?style=flat)
88

99
[![NuGet Version](https://img.shields.io/nuget/v/NUnit3TestAdapter.svg)](https://www.nuget.org/packages/NUnit3TestAdapter) ![](https://img.shields.io/nuget/dt/NUnit3TestAdapter.svg?style=flat)
1010

11-
or the latest pre-release version
11+
or the latest developer build version
1212

1313
[![MyGet version](https://img.shields.io/myget/nunit/vpre/NUnit3TestAdapter.svg?label=Myget%3A%20Latest%20pre-release&style=flat)](https://www.myget.org/feed/nunit/package/nuget/NUnit3TestAdapter)
1414

@@ -43,7 +43,7 @@ The NUnit 3 Test Adapter is Open Source software released under the [![](https:/
4343

4444
## Developing
4545

46-
Visual Studio 2019 is the minimum required version to build the adapter.
46+
Visual Studio 2022 is the recommended version to build and test the adapter.
4747

4848
Use `.\build -t test` at the command line to build and run complete tests.
4949

@@ -64,6 +64,12 @@ The NuGet package and the VSIX contain source-linked PDBs for the adapter.
6464
If you’re in the middle of a debugging session and realize you’d like to be able to step into NUnit adapter code,
6565
set breakpoints and watch variables, [follow these steps](https://github.com/nunit/docs/wiki/Adapter-Source-Stepping).
6666

67-
## Announcement
67+
## Notes
68+
69+
* This adapter works with NUnit 3.0 and higher only. Use the NUnit 2 Adapter to run NUnit 2.x tests.
70+
71+
72+
## Announcements
6873
* From version 3.9 the NUnit3TestAdapter will stop supporting Visual Studio 2012 RTM (!), note only RTM, the later updates will still be supported fully. If you're using VS 2012 and want to update NUnit3TestAdapter, please update your Visual Studio RTM to any of the subsequent updates (Update 1-5)
6974
* From version 3.16 the NUnit3TestAdapter will stop supporting .net core 1
75+
* From version 4.0 the NUnit3TestAdapter will only be released as a nuget package, the VSIX is deprecated.

build.cake

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var configuration = Argument("configuration", "Release");
1313
//////////////////////////////////////////////////////////////////////
1414

1515
var version = "4.3.0";
16-
var modifier = "-alpha-108";
16+
var modifier = "";
1717

1818

1919
var dbgSuffix = configuration.ToLower() == "debug" ? "-dbg" : "";

global.json

-6
This file was deleted.

nuget/NUnit3TestAdapter.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
For VS 2017 and forward, you should add this package to every test project in your solution. (Earlier versions only require a single adapter package per solution.)
1919
</description>
2020
<releaseNotes>See https://docs.nunit.org/articles/vs-test-adapter/Adapter-Release-Notes.html </releaseNotes>
21-
<copyright>Copyright (c) 2011-2021 Charlie Poole, 2014-2021 Terje Sandstrom</copyright>
21+
<copyright>Copyright (c) 2011-2021 Charlie Poole, 2014-2022 Terje Sandstrom</copyright>
2222
<language>en-US</language>
2323
<tags>test visualstudio testadapter nunit nunit3 dotnet</tags>
2424

src/NUnit.TestAdapter.Tests.Acceptance/AcceptanceTests.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class Frameworks
1616
public const string NetCoreApp21 = "netcoreapp2.1";
1717
public const string Net50 = "net5.0";
1818
public const string Net60 = "net6.0";
19+
public const string Net70 = "net7.0";
1920
}
2021

2122
[Category("Acceptance")]
@@ -39,7 +40,8 @@ public abstract class AcceptanceTests
3940
Frameworks.NetCoreApp21,
4041
Frameworks.NetCoreApp31,
4142
Frameworks.Net50,
42-
Frameworks.Net60
43+
Frameworks.Net60,
44+
Frameworks.Net70
4345
};
4446

4547
private static readonly Lazy<(IsolatedWorkspaceManager Manager, string NupkgVersion, bool KeepWorkspaces)> Initialization = new(() =>
@@ -71,7 +73,7 @@ public abstract class AcceptanceTests
7173
downloadCachePath: Path.Combine(directory, ".toolcache"));
7274

7375
if (keepWorkspaces) manager.PreserveDirectory("The KeepWorkspaces test parameter was set to true.");
74-
76+
TestContext.WriteLine($"Directory: {directory}, NugetPackageDirectory {nupkgDirectory},NugetPackageVersion: {nupkgVersion}");
7577
return (manager, nupkgVersion, keepWorkspaces);
7678
});
7779

src/NUnit.TestAdapter.Tests.Acceptance/NUnit.TestAdapter.Tests.Acceptance.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="nunit" Version="3.13.3" />
14-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
14+
<PackageReference Include="NUnit3TestAdapter" Version="4.3.0-rc.1" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
1616
<PackageReference Include="NUnit.Analyzers" Version="3.5.0" />
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
20+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
2121
<PrivateAssets>all</PrivateAssets>
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
</PackageReference>

src/NUnit3AdapterExternalTests/NUnit3AdapterExternalTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
14+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>

src/NUnitTestAdapter/AdapterSettings.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ private void SetTestOutputFolder()
433433
case OutputXmlFolderMode.RelativeToWorkFolder:
434434
TestOutputFolder = Path.Combine(WorkDirectory, TestOutputXml);
435435
return;
436+
case OutputXmlFolderMode.AsSpecified:
437+
default:
438+
return;
436439
}
437440
}
438441

@@ -667,6 +670,7 @@ public enum OutputXmlFolderMode
667670
{
668671
UseResultDirectory,
669672
RelativeToResultDirectory,
670-
RelativeToWorkFolder
673+
RelativeToWorkFolder,
674+
AsSpecified
671675
}
672676
}

src/NUnitTestAdapter/NUnit.TestAdapter.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</ItemGroup>
4242

4343
<ItemGroup>
44-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
44+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
4545
<PrivateAssets>all</PrivateAssets>
4646
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4747
</PackageReference>

src/NUnitTestAdapter/Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[assembly: AssemblyDescription("A package containing the NUnit3 TestAdapter for Visual Studio 2012 onwards. \n\r\nThe package works with Visual Studio 2012 and newer, dotnet test and VSTest.Console.\r\n")]
1313
[assembly: AssemblyCompany("NUnit Project")]
1414
[assembly: AssemblyProduct("NUnit3TestAdapter")]
15-
[assembly: AssemblyCopyright("Copyright © 2011-2021 Charlie Poole, 2014-2021 Terje Sandstrom")]
15+
[assembly: AssemblyCopyright("Copyright © 2011-2021 Charlie Poole, 2014-2022 Terje Sandstrom")]
1616
[assembly: AssemblyTrademark("")]
1717
[assembly: AssemblyCulture("")]
1818
[assembly: CLSCompliant(false)]

src/NUnitTestAdapter/TestConverter.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,13 @@ bool CheckCodeFilePathOverride()
231231
private string CreateDisplayName(string fullyQualifiedName, string testNodeName)
232232
{
233233
return adapterSettings.FreakMode
234-
? "N:Name -> MS:DisplayName (default)"
234+
? adapterSettings.DisplayName switch
235+
{
236+
DisplayNameOptions.Name => "N:Name -> MS:DisplayName (default)",
237+
DisplayNameOptions.FullName => "N:FullyQualifiedName -> MS:DisplayName",
238+
DisplayNameOptions.FullNameSep => $"N:FullyQualifiedName -> MS:DisplayName, with separator '.' replaced with '{adapterSettings.FullnameSeparator}'",
239+
_ => $"Invalid setting: {adapterSettings.DisplayName}"
240+
}
235241
: adapterSettings.DisplayName switch
236242
{
237243
DisplayNameOptions.Name => testNodeName,

src/NUnitTestAdapterTests/NUnit.TestAdapter.Tests.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
</ItemGroup>
2525

2626
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
27-
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.2.0" />
28-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
27+
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.3.2" />
28+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
2929
</ItemGroup>
3030

3131
<ItemGroup>
@@ -42,7 +42,7 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
45+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
4646
<PrivateAssets>all</PrivateAssets>
4747
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4848
</PackageReference>

src/empty-assembly/empty-assembly.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
15+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>

src/mock-assembly/mock-assembly.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
15+
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>

0 commit comments

Comments
 (0)