Skip to content

Commit

Permalink
Added debugging to test.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Oct 15, 2024
1 parent a3d4b11 commit cdaeeb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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

0 comments on commit cdaeeb7

Please sign in to comment.