diff --git a/scripts/test.ps1 b/scripts/test.ps1 index 612be46bef..98a961c313 100644 --- a/scripts/test.ps1 +++ b/scripts/test.ps1 @@ -20,11 +20,13 @@ $packageReference = $project.SelectSingleNode("/Project/ItemGroup/PackageReferen $consoleRunnerVersion = $packageReference.GetAttribute("Version") $NUnitConsoleRunner = Join-Path $nugetPackagesDir "nunit.consolerunner" $consoleRunnerVersion "tools" "nunit3-console.exe" +$NUnitConsoleRunnerExists = Test-Path $NUnitConsoleRunner -PathType Leaf # Get the OutputPath $targetFramework = $project.SelectSingleNode("/Project/PropertyGroup/TargetFramework") $OutputDir = Join-Path "UnitTests" "bin" $Configuration $targetFramework.InnerText $UnitTestsAssembly = Join-Path $OutputDir "UnitTests.dll" +$UnitTestsAssemblyExists = Test-Path $UnitTestsAssembly -PathType Leaf if ($GenerateCodeCoverage -eq 'true') { Write-Output "Instrumenting code..." @@ -34,5 +36,7 @@ if ($GenerateCodeCoverage -eq 'true') { } Write-Output "Running the UnitTests" +Write-Output "Console Runner: ${NUnitConsoleRunner} ${NUnitConsoleRunnerExists}" +Write-Output "Assembly: ${UnitTestsAssembly} ${UnitTestsAssemblyExists}" & $NUnitConsoleRunner --domain:single $UnitTestsAssembly