diff --git a/psake.ps1 b/psake.ps1 index 34dfe29c7..b5caebb94 100644 --- a/psake.ps1 +++ b/psake.ps1 @@ -242,7 +242,7 @@ $pesterScriptBlock = { task Pester -Depends Import $pesterScriptBlock -description 'Run Pester tests' -task PesterOnly -Depends Update $pesterScriptBlock -description 'Run Pester tests only (no Clean/Compile)' +task PesterOnly -Depends Init $pesterScriptBlock -description 'Run Pester tests only (no Clean/Compile)' task Analyze -Depends Pester { $analysis = Invoke-ScriptAnalyzer -Path "$PSScriptRoot\$($env:BHProjectName)" -Recurse -Verbose:$false