Skip to content

Commit

Permalink
cleaned up final output
Browse files Browse the repository at this point in the history
  • Loading branch information
mbt1 committed May 16, 2024
1 parent 2c60188 commit a256930
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions Build/tSQLt_Validate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,24 @@ try{
$missingFiles = ($ExpectedTestResultFiles|Where-Object{$ActualTestResultFiles -NotContains $_})
$superfluousFiles = ($ActualTestResultFiles|Where-Object{$ExpectedTestResultFiles -NotContains $_})
$matchingFiles = ($ActualTestResultFiles|Where-Object{$ExpectedTestResultFiles -Contains $_})
Write-Warning("Matching Files:")
$matchingFiles
Log-Output("+------------------------------------------------");
Log-Output("| Expected Test Result Files:");
$matchingFiles|%{Log-Output("| - $_");}
Log-Output("+------------------------------------------------");
if($missingFiles.length -gt 0){
Write-Warning("There are files missing:");
$missingFiles
Log-Output("| Missing Test Result Files:");
$missingFiles|%{Log-Output("| - $_");}
}else{
Log-Output("| No Missing Test Result Files");
}
Log-Output("+------------------------------------------------");
if($superfluousFiles.length -gt 0){
Write-Warning("There are unexpected files:")
$superfluousFiles
Log-Output("| Unexpected Test Result Files:")
$superfluousFiles|%{Log-Output("| - $_");}
}else{
Log-Output("| No Unexpected Test Result Files");
}
Log-Output("+------------------------------------------------");
if($missingFiles.Length + $superfluousFiles.Length -gt 0){
Write-Error("Missing or Unexpected Test Result Files!")
}
Expand Down

0 comments on commit a256930

Please sign in to comment.