Remove support for older .NET and unit testing frameworks#1227
Conversation
c0cec9b to
0712869
Compare
53745d4 to
4e5e8b6
Compare
9914e4f to
e2aca9f
Compare
a7105c3 to
0ea4441
Compare
0ea4441 to
bb20cf9
Compare
jnyrup
left a comment
There was a problem hiding this comment.
Looks interesting.
I don't think I understand the NetStandardReflector/FullFrameworkReflector changes.
Did something not work before?
Before only netstandard16 used the NetStandardReflector which seems to be the only file that has a dependency on Microsoft.Extensions.DependencyModel.
Now many more targets use NetStandardReflector and hence gets an extra dependency.
preprocessor directives in Specs
Tests/Shared.Specs/Equivalency/BasicEquivalencySpecs.cs:3013:#if !NETCOREAPP1_1 && !NETSTANDARD1_3 && !NETSTANDARD1_6 && !NETSTANDARD2_0
Tests/Shared.Specs/Execution/AssertionScopeSpecs.cs:18:#if !NETCOREAPP1_1 && !NETSTANDARD1_3 && !NETSTANDARD1_6 && !NETSTANDARD2_0
Tests/Shared.Specs/Execution/CallerIdentifierSpecs.cs:1:#if !NETCOREAPP1_1 && !NETSTANDARD1_3 && !NETSTANDARD1_6 && !NETSTANDARD2_0
Tests/Shared.Specs/Primitives/ObjectAssertionSpecs.cs:824:#if !NETCOREAPP1_1 && !NETSTANDARD1_3 && !NETSTANDARD1_6 && !NETSTANDARD2_0
Tests/Shared.Specs/Specialized/AssemblyAssertionSpecs.cs:1:#if !NETCOREAPP1_1 && !NETSTANDARD1_3 && !NETSTANDARD1_6 && !NETSTANDARD2_0
mentions of removed test frameworks
Tests/AssemblyA/AssemblyA.v3.ncrunchproject:3: Disabled
Tests/AssemblyB/AssemblyB.v3.ncrunchproject:3: Disabled
Tests/Shared.Specs/Shared.Specs.v3.ncrunchproject:3: Disabled
Tests/TestFrameworks/MSpec.Specs/MSpec.Specs.v3.ncrunchproject:3: Disabled
Tests/TestFrameworks/MSTestV2.Specs/MSTestV2.Specs.v3.ncrunchproject:3: Disabled
Tests/TestFrameworks/NSpec3.Net47.Specs/NSpec3.Net45.Specs.v3.ncrunchproject:3: Disabled
Tests/TestFrameworks/NUnit3.Specs/NUnit3.Specs.v3.ncrunchproject:3: Disabled
Tests/TestFrameworks/XUnit2.Specs/XUnit2.Specs.v3.ncrunchproject:3: Disabled
Tests/AssemblyA/AssemblyA.v3.ncrunchproject:6: Disabled
Tests/AssemblyB/AssemblyB.v3.ncrunchproject:6: Disabled
Tests/Shared.Specs/Shared.Specs.v3.ncrunchproject:6: Disabled
Tests/TestFrameworks/MSpec.Specs/MSpec.Specs.v3.ncrunchproject:6: Disabled
Tests/TestFrameworks/MSTestV2.Specs/MSTestV2.Specs.v3.ncrunchproject:6: Disabled
Tests/TestFrameworks/NSpec3.Net47.Specs/NSpec3.Net45.Specs.v3.ncrunchproject:6: Disabled
Tests/TestFrameworks/NUnit3.Specs/NUnit3.Specs.v3.ncrunchproject:6: Disabled
Tests/TestFrameworks/XUnit2.Specs/XUnit2.Specs.v3.ncrunchproject:6: Disabled
Tests/AssemblyA/AssemblyA.v3.ncrunchproject:5: Disabled
Tests/AssemblyB/AssemblyB.v3.ncrunchproject:5: Disabled
Tests/Shared.Specs/Shared.Specs.v3.ncrunchproject:5: Disabled
Tests/TestFrameworks/MSpec.Specs/MSpec.Specs.v3.ncrunchproject:5: Disabled
Tests/TestFrameworks/NSpec3.Net47.Specs/NSpec3.Net45.Specs.v3.ncrunchproject:5: Disabled
Tests/TestFrameworks/NUnit3.Specs/NUnit3.Specs.v3.ncrunchproject:5: Disabled
Tests/TestFrameworks/XUnit2.Specs/XUnit2.Specs.v3.ncrunchproject:5: Disabled
docs that needs updates regarding target frameworks/test frameworks
docs/index.html:53:Targets .NET 4.5, .NET 4.7, .NET Core 2.0, .Net Core 2.1, .NET Standard 1.3, 1.6, 2.0 and 2.1 and is compatible with .NET Core 3.0.
docs/index.html:54:Supports MSTest, xUnit, NUnit, Gallio, MBUnit, MSpec and NSpec.
docs/_config.yml:22: Targets .NET Framework 4.5 and 4.7, .NET Core 2.0 and 2.1, as well as .NET Standard 1.3, 1.6, 2.0 and 2.1."
docs/_pages/assemblies.md:10:If you're running .NET 4.5 or .NET Standard 2.0, you have access to methods to assert an assembly does or does not reference another assembly.
docs/_pages/introduction.md:66:and you're running under .NET 4.5 or a .NET Standard 2.0 project
docs/_pages/introduction.md:71:
no longer needed nuget packages
Build/_build.csproj:14:
Build/_build.csproj:15:
file that needs renaming
./Tests/TestFrameworks/NSpec3.Net47.Specs/NSpec3.Net45.Specs.v3.ncrunchproject
Good point. After further investigation, I discovered that all the targeted frameworks can work with the |
I'll do that in a separate PR
Same here.
Fixed |
1bdebf4 to
aefdc0d
Compare
Tests/Shared.Specs/Exceptions/AsyncFunctionExceptionAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
aefdc0d to
ac54091
Compare
jnyrup
left a comment
There was a problem hiding this comment.
Once the netstandard2.0.approved.txt is updated, I'm good.
Removes support for NSpec 1 and 2, MSTest 1. XUnit 1, Removes support for .NET 4.5, .NET Standard 1.3 and 1.6.
ac54091 to
e4c75a3
Compare
Sloppy me ;-) |
Reduced support to .NET 4.7, .NET Standard 2.0 and 2.1, and .NET Core 2.1 and 3.0.
Reduced support to the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
#1228