Skip to content

Commit

Permalink
Merge pull request nunit#1521 from nunit/issue-1505
Browse files Browse the repository at this point in the history
Add tests to show that the .NET Core runner loads compatible extensions
  • Loading branch information
CharliePoole authored Dec 1, 2024
2 parents 97e76f9 + 3703993 commit 9734086
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion NUnitConsole.sln
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
GitVersion.yml = GitVersion.yml
global.json = global.json
LICENSE.txt = LICENSE.txt
NetFXTests.nunit = NetFXTests.nunit
NetCoreTests.nunit = NetCoreTests.nunit
MixedTests.nunit = MixedTests.nunit
NOTICES.txt = NOTICES.txt
NuGet.config = NuGet.config
nunit.ico = nunit.ico
Expand Down
11 changes: 11 additions & 0 deletions NetCoreTests.nunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<NUnitProject>
<Settings processModel="Default" domainUsage="Default" />
<Config name="Debug" appbase="bin/Debug">
<assembly path="testdata/net6.0/mock-assembly.dll" />
<assembly path="testdata/net8.0/mock-assembly.dll" />
</Config>
<Config name="Release" appbase="bin/Release">
<assembly path="testdata/net6.0/mock-assembly.dll" />
<assembly path="testdata/net8.0/mock-assembly.dll" />
</Config>
</NUnitProject>
13 changes: 10 additions & 3 deletions package-tests.cake
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,19 @@ AddToBothLists(new PackageTest(
// RUN TESTS USING EACH OF OUR EXTENSIONS
//////////////////////////////////////////////////////////////////////

// NUnit Project Loader Test
// NUnit Project Loader Tests
StandardRunnerTests.Add(new PackageTest(
1, "NUnitProjectTest",
"Run NUnit project with mock-assembly.dll built for .NET 4.6.2 and 6.0",
"../../NetFXTests.nunit --config=Release --trace=Debug",
new MockAssemblyExpectedResult("net-4.6.2", "netcore-6.0"),
"../../MixedTests.nunit --config=Release",
new MockAssemblyExpectedResult("net-4.6.2", "net-6.0"),
KnownExtensions.NUnitProjectLoader));

NetCoreRunnerTests.Add(new PackageTest(
1, "NUnitProjectTest",
"Run NUnit project with mock-assembly.dll built for .NET 6.0 and 8.0",
"../../NetCoreTests.nunit --config=Release",
new MockAssemblyExpectedResult("netcore-6.0", "netcore-8.0"),
KnownExtensions.NUnitProjectLoader));

// V2 Result Writer Test
Expand Down

0 comments on commit 9734086

Please sign in to comment.