Skip to content

Commit

Permalink
Merge pull request #1498 from nunit/more-tests
Browse files Browse the repository at this point in the history
Additional tests for the netcore runners
  • Loading branch information
CharliePoole authored Oct 8, 2024
2 parents 9a98ee0 + 8f04dfa commit e6ab451
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package-tests.cake
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ StandardRunnerTests.Add(new PackageTest(
// ASP.NETCORE TESTS
//////////////////////////////////////////////////////////////////////

StandardRunnerTests.Add(new PackageTest(
AddToBothLists(new PackageTest(
1, "Net60AspNetCoreTest", "Run test using AspNetCore targeting .NET 6.0",
"testdata/net6.0/aspnetcore-test.dll", new ExpectedResult("Passed")
{
Total = 3, Passed = 3, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0,
Assemblies = new ExpectedAssemblyResult[] { new ExpectedAssemblyResult("aspnetcore-test.dll", "netcore-6.0") }
}));

StandardRunnerTests.Add(new PackageTest(
AddToBothLists(new PackageTest(
1, "Net80AspNetCoreTest", "Run test using AspNetCore targeting .NET 8.0",
"testdata/net8.0/aspnetcore-test.dll", new ExpectedResult("Passed")
{
Expand All @@ -166,14 +166,15 @@ StandardRunnerTests.Add(new PackageTest(
// WINDOWS FORMS TESTS
//////////////////////////////////////////////////////////////////////

StandardRunnerTests.Add(new PackageTest(
AddToBothLists(new PackageTest(
1, "Net60WindowsFormsTest", "Run test using windows forms under .NET 6.0",
"testdata/net6.0-windows/windows-forms-test.dll", new ExpectedResult("Passed")
{
Total = 2, Passed = 2, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0,
Assemblies = new ExpectedAssemblyResult[] { new ExpectedAssemblyResult("windows-forms-test.dll", "netcore-6.0") }
}));

// Runs under Net80 runner but not NetCore
StandardRunnerTests.Add(new PackageTest(
1, "Net80WindowsFormsTest", "Run test using windows forms under .NET 8.0",
"testdata/net8.0-windows/windows-forms-test.dll", new ExpectedResult("Passed")
Expand All @@ -186,12 +187,12 @@ StandardRunnerTests.Add(new PackageTest(
// WPF TESTS
//////////////////////////////////////////////////////////////////////

StandardRunnerTests.Add(new PackageTest(
AddToBothLists(new PackageTest(
1, "Net60WPFTest", "Run test using WPF under .NET 6.0",
"testdata/net6.0-windows/WpfTest.dll --trace=Debug",
new ExpectedResult("Passed") { Assemblies = new[] { new ExpectedAssemblyResult("WpfTest.dll", "netcore-6.0") } }));

StandardRunnerTests.Add(new PackageTest(
AddToBothLists(new PackageTest(
1, "Net80WPFTest", "Run test using WPF under .NET 8.0",
"testdata/net8.0-windows/WpfTest.dll --trace=Debug",
new ExpectedResult("Passed") { Assemblies = new[] { new ExpectedAssemblyResult("WpfTest.dll", "netcore-8.0") } }));
Expand Down

0 comments on commit e6ab451

Please sign in to comment.