Skip to content

Commit 3e438fb

Browse files
Remove HTML encoding from command output for missed and executed commands in coverage report
1 parent 6f0346e commit 3e438fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ LogGroup 'Set table for missed commands' {
162162
$missedForDisplay = $tableheader
163163

164164
foreach ($item in $codeCoverage.CommandsMissed | Sort-Object -Property File, Line) {
165-
$command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
165+
# $command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
166166
$command = Normalize-IndentationExceptFirst -Code $command
167167
# $command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')
168168
$missedForDisplay += @"
@@ -192,7 +192,7 @@ LogGroup 'Set table for executed commands' {
192192
$missedForDisplay = $tableheader
193193

194194
foreach ($item in $codeCoverage.CommandsExecuted | Sort-Object -Property File, Line) {
195-
$command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
195+
# $command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
196196
$command = Normalize-IndentationExceptFirst -Code $command
197197
# $command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')
198198
$missedForDisplay += @"

0 commit comments

Comments
 (0)