From 92bf3ce2a858444350ee52b3483d7224a75b1a21 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Thu, 6 Jul 2017 10:15:05 -0600 Subject: [PATCH] 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 - https://github.com/Microsoft/vscode/issues/22065#issuecomment-313418250 --- examples/.vscode/tasks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/.vscode/tasks.json b/examples/.vscode/tasks.json index 6452e9fd81..360a95d7f2 100644 --- a/examples/.vscode/tasks.json +++ b/examples/.vscode/tasks.json @@ -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"