Skip to content

Commit 92bf3ce

Browse files
rkeithhilldaviwil
authored andcommitted
Eliminate Pester duplicate failures in Problems view.
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)
1 parent b0b8a03 commit 92bf3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"isTestCommand": true,
8585
"showOutput": "always",
8686
"args": [
87-
"Write-Host 'Invoking Pester...'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};",
87+
"Write-Host 'Invoking Pester...'; $ProgressPreference = 'SilentlyContinue'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};",
8888
"Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
8989
],
9090
"problemMatcher": "$pester"

0 commit comments

Comments
 (0)