Skip to content

Commit

Permalink
Eliminate Pester duplicate failures in Problems view.
Browse files Browse the repository at this point in the history
When tasks is set to 2.0.0, the tasks run in the terminal and in this case, Pester outputs a bunch of progress text to the terminal.  This results in duplicate failures being found by the problem matcher.

Work around this problem for now by eliminating the Pester progress output.  For more details see - microsoft/vscode#22065 (comment)
  • Loading branch information
rkeithhill authored and daviwil committed Jul 6, 2017
1 parent b0b8a03 commit 92bf3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"isTestCommand": true,
"showOutput": "always",
"args": [
"Write-Host 'Invoking Pester...'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};",
"Write-Host 'Invoking Pester...'; $ProgressPreference = 'SilentlyContinue'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};",
"Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
],
"problemMatcher": "$pester"
Expand Down

0 comments on commit 92bf3ce

Please sign in to comment.