diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index cc9e385bee..22d9ca5313 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -6,13 +6,22 @@ "version": "8.9.3", "commands": [ "altcover" - ] + ], + "rollForward": false }, "coveralls.net": { "version": "4.0.1", "commands": [ "csmacnz.Coveralls" - ] + ], + "rollForward": false + }, + "nunit.consolerunner.netcore": { + "version": "3.18.3", + "commands": [ + "nunit" + ], + "rollForward": false } } } \ No newline at end of file diff --git a/scripts/test.ps1 b/scripts/test.ps1 index 612be46bef..a37e7e5570 100644 --- a/scripts/test.ps1 +++ b/scripts/test.ps1 @@ -13,14 +13,6 @@ Write-Output "" [xml]$project = Get-Content UnitTests\UnitTests.csproj -$nugetPackagesDir = Join-Path $Home ".nuget" "packages" - -# Get the NUnit.ConsoleRunner executable path -$packageReference = $project.SelectSingleNode("/Project/ItemGroup/PackageReference[@Include='NUnit.ConsoleRunner']") -$consoleRunnerVersion = $packageReference.GetAttribute("Version") - -$NUnitConsoleRunner = Join-Path $nugetPackagesDir "nunit.consolerunner" $consoleRunnerVersion "tools" "nunit3-console.exe" - # Get the OutputPath $targetFramework = $project.SelectSingleNode("/Project/PropertyGroup/TargetFramework") $OutputDir = Join-Path "UnitTests" "bin" $Configuration $targetFramework.InnerText @@ -35,4 +27,4 @@ if ($GenerateCodeCoverage -eq 'true') { Write-Output "Running the UnitTests" -& $NUnitConsoleRunner --domain:single $UnitTestsAssembly +dotnet nunit $UnitTestsAssembly