Skip to content

Commit cdaeeb7

Browse files
committed
Added debugging to test.ps1
1 parent a3d4b11 commit cdaeeb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/test.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ $packageReference = $project.SelectSingleNode("/Project/ItemGroup/PackageReferen
2020
$consoleRunnerVersion = $packageReference.GetAttribute("Version")
2121

2222
$NUnitConsoleRunner = Join-Path $nugetPackagesDir "nunit.consolerunner" $consoleRunnerVersion "tools" "nunit3-console.exe"
23+
$NUnitConsoleRunnerExists = Test-Path $NUnitConsoleRunner -PathType Leaf
2324

2425
# Get the OutputPath
2526
$targetFramework = $project.SelectSingleNode("/Project/PropertyGroup/TargetFramework")
2627
$OutputDir = Join-Path "UnitTests" "bin" $Configuration $targetFramework.InnerText
2728
$UnitTestsAssembly = Join-Path $OutputDir "UnitTests.dll"
29+
$UnitTestsAssemblyExists = Test-Path $UnitTestsAssembly -PathType Leaf
2830

2931
if ($GenerateCodeCoverage -eq 'true') {
3032
Write-Output "Instrumenting code..."
@@ -34,5 +36,7 @@ if ($GenerateCodeCoverage -eq 'true') {
3436
}
3537

3638
Write-Output "Running the UnitTests"
39+
Write-Output "Console Runner: ${NUnitConsoleRunner} ${NUnitConsoleRunnerExists}"
40+
Write-Output "Assembly: ${UnitTestsAssembly} ${UnitTestsAssemblyExists}"
3741

3842
& $NUnitConsoleRunner --domain:single $UnitTestsAssembly

0 commit comments

Comments
 (0)