Skip to content

Commit

Permalink
Move test framework check
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Jan 24, 2024
1 parent 8a0cec8 commit aee21c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tools/InvokeBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ task PesterTests {
return
}

if (-not $Manifest.TestFramework) {
throw "No compatible target test framework for PowerShell '$($Manifest.PowerShellVersion)'"
}

$dotnetTools = @(dotnet tool list --global) -join "`n"
if (-not $dotnetTools.Contains('coverlet.console')) {
Write-Host 'Installing dotnet tool coverlet.console' -ForegroundColor Yellow
Expand Down
4 changes: 0 additions & 4 deletions tools/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ class Manifest {
break
}
}

if (-not $this.TestFramework) {
throw "No available target framework for PowerShell '$($this.PowerShellVersion)'"
}
}
}

Expand Down

0 comments on commit aee21c9

Please sign in to comment.