Skip to content

Commit

Permalink
printout
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Sep 21, 2023
1 parent f550b60 commit 45ca9be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<br>' # Replace new lines with <br> to enable line breaks in markdown
Expand Down

0 comments on commit 45ca9be

Please sign in to comment.