Skip to content

Commit ef4b3ea

Browse files
committed
Add package tests of .NET 10.0 agent
1 parent a6a7b00 commit ef4b3ea

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.github/workflows/NUnitConsoleAndEngine.CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
3.1.x
4040
6.0.x
4141
7.0.x
42-
8.0.100
42+
8.0.x
43+
9.0.x
44+
10.0.x
4345
4446
- name: 🔧 Install dotnet tools
4547
run: dotnet tool restore

package-tests.cake

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ public static class PackageTests
4646
ExpectedResult=new MockAssemblyExpectedResult("net-4.6.2")
4747
});
4848

49+
AllLists.Add(new PackageTest(1, "Net10Test")
50+
{
51+
Description = "Run mock-assembly.dll targeting .NET 10.0",
52+
Arguments = "testdata/net10.0/mock-assembly.dll",
53+
ExpectedResult = new MockAssemblyExpectedResult("netcore-10.0")
54+
});
55+
4956
AllLists.Add(new PackageTest(1, "Net90Test")
5057
{
5158
Description = "Run mock-assembly.dll targeting .NET 9.0",
@@ -145,11 +152,11 @@ public static class PackageTests
145152
ExpectedResult = new MockAssemblyExpectedResult("net-4.6.2", "net-4.6.2")
146153
});
147154

148-
StandardAndZipLists.Add(new PackageTest(1, "Net60PlusNet80Test")
155+
StandardAndZipLists.Add(new PackageTest(1, "Net60PlusNet80PlusNet10Test")
149156
{
150157
Description = "Run mock-assembly targeting .NET6.0 and 8.0 together",
151-
Arguments = "testdata/net6.0/mock-assembly.dll testdata/net8.0/mock-assembly.dll",
152-
ExpectedResult = new MockAssemblyExpectedResult("netcore-6.0", "netcore-8.0")
158+
Arguments = "testdata/net6.0/mock-assembly.dll testdata/net8.0/mock-assembly.dll testdata/net10.0/mock-assembly.dll",
159+
ExpectedResult = new MockAssemblyExpectedResult("netcore-6.0", "netcore-8.0", "netcore-10.0")
153160
});
154161

155162
StandardAndZipLists.Add(new PackageTest(1, "Net462PlusNet60Test")
@@ -195,6 +202,22 @@ public static class PackageTests
195202
}
196203
});
197204

205+
AllLists.Add(new PackageTest(1, "Net10AspNetCoreTest")
206+
{
207+
Description = "Run test using AspNetCore targeting .NET 8.0",
208+
Arguments = "testdata/net8.0/aspnetcore-test.dll",
209+
ExpectedResult = new ExpectedResult("Passed")
210+
{
211+
Total = 3,
212+
Passed = 3,
213+
Failed = 0,
214+
Warnings = 0,
215+
Inconclusive = 0,
216+
Skipped = 0,
217+
Assemblies = new ExpectedAssemblyResult[] { new ExpectedAssemblyResult("aspnetcore-test.dll", "netcore-8.0", "netcore-10.0") }
218+
}
219+
});
220+
198221
//////////////////////////////////////////////////////////////////////
199222
// WINDOWS FORMS TESTS
200223
//////////////////////////////////////////////////////////////////////
@@ -311,7 +334,7 @@ public static class PackageTests
311334
{
312335
Description = "Run mock-assembly using the .csproj file",
313336
Arguments = "../../src/TestData/mock-assembly/mock-assembly.csproj --config=Release",
314-
ExpectedResult = new MockAssemblyExpectedResult("net462", "netcore-3.1", "netcore-6.0", "netcore-7.0", "netcore-8.0", "netcore-9.0"),
337+
ExpectedResult = new MockAssemblyExpectedResult("net462", "netcore-3.1", "netcore-6.0", "netcore-7.0", "netcore-8.0", "netcore-9.0", "netcore-10.0"),
315338
ExtensionsNeeded = new[] { Extensions.VSProjectLoader }
316339
});
317340

0 commit comments

Comments
 (0)