Skip to content

Commit dfd9702

Browse files
Refactor command processing to improve handling of missed and executed commands in coverage report
1 parent 3e438fb commit dfd9702

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/main.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +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 = $item.Command
165166
# $command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
166167
$command = Normalize-IndentationExceptFirst -Code $command
167168
# $command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')
@@ -192,6 +193,7 @@ LogGroup 'Set table for executed commands' {
192193
$missedForDisplay = $tableheader
193194

194195
foreach ($item in $codeCoverage.CommandsExecuted | Sort-Object -Property File, Line) {
196+
$command = $item.Command
195197
# $command = [System.Web.HttpUtility]::HtmlEncode($item.Command)
196198
$command = Normalize-IndentationExceptFirst -Code $command
197199
# $command = $command.Replace([Environment]::NewLine, '<br>').Replace(' ', '&nbsp;').Replace('{', '\{').Replace('}', '\}')

0 commit comments

Comments
 (0)