From 45ca9bea5067a3752787f108a64faed049c35d66 Mon Sep 17 00:00:00 2001 From: Erika Gressi Date: Thu, 21 Sep 2023 18:51:52 +0200 Subject: [PATCH] printout --- .../pipelines/staticValidation/Set-PesterGitHubOutput.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 b/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 index ac1cac877d..4e4bef4350 100644 --- a/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 +++ b/avm/utilities/pipelines/staticValidation/Set-PesterGitHubOutput.ps1 @@ -132,7 +132,9 @@ function Set-PesterGitHubOutput { $errorTestLine = $failedTest.ErrorRecord.TargetObject.Line #TODO Remove Write-Verbose "1" + Write-Verbose "$($failedTest.ErrorRecord.TargetObject.File)" $errorTestFile = (Split-Path $failedTest.ErrorRecord.TargetObject.File -Leaf).Trim() + #TODO Remove Write-Verbose "2" $errorMessage = $failedTest.ErrorRecord.TargetObject.Message.Trim() -replace '\n', '
' # Replace new lines with
to enable line breaks in markdown