diff options
| author | Adonais Romero González <[email protected]> | 2023-06-15 11:51:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-15 11:51:39 -0700 |
| commit | f5fe952f1fc90cfcff535407d56f49953d22e8da (patch) | |
| tree | 9149971aa79642585b6798c60a9e419c63868231 /Build-SampleSet.ps1 | |
| parent | c5cc3eca707a39d71a3f34281af107795b2af945 (diff) | |
Generate and provide overview reports (#993)
Diffstat (limited to 'Build-SampleSet.ps1')
| -rw-r--r-- | Build-SampleSet.ps1 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Build-SampleSet.ps1 b/Build-SampleSet.ps1 index cb7c2a5f..a967abb9 100644 --- a/Build-SampleSet.ps1 +++ b/Build-SampleSet.ps1 @@ -4,6 +4,7 @@ param( [string[]]$Configurations = @(if ([string]::IsNullOrEmpty($env:WDS_Configuration)) { "Debug" } else { $env:WDS_Configuration }), [string[]]$Platforms = @(if ([string]::IsNullOrEmpty($env:WDS_Platform)) { "x64" } else { $env:WDS_Platform }), $LogFilesDirectory = (Get-Location), + [string]$ReportFileName = $(if ([string]::IsNullOrEmpty($env:WDS_ReportFileName)) { "_overview" } else { $env:WDS_ReportFileName }), [int]$ThrottleLimit = 0 ) @@ -20,7 +21,8 @@ if ($PSBoundParameters.ContainsKey('Verbose')) { } New-Item -ItemType Directory -Force -Path $LogFilesDirectory | Out-Null -$sampleBuilderFilePath = "$LogFilesDirectory\_overview.htm" +$reportFilePath = Join-Path $LogFilesDirectory "$ReportFileName.htm" +$reportCsvFilePath = Join-Path $LogFilesDirectory "$ReportFileName.csv" Remove-Item -Recurse -Path $LogFilesDirectory 2>&1 | Out-Null @@ -205,8 +207,9 @@ Write-Output "Excluded: $SolutionsExcluded" Write-Output "Unsupported: $SolutionsUnsupported" Write-Output "Failed: $SolutionsFailed" Write-Output "Log files directory: $LogFilesDirectory" -Write-Output "Overview report: $sampleBuilderFilePath" +Write-Output "Overview report: $reportFilePath" Write-Output "" -$Results | Sort-Object { $_.Sample } | ConvertTo-Html -Title "Overview" | Out-File $sampleBuilderFilePath -Invoke-Item $sampleBuilderFilePath +$Results | Sort-Object { $_.Sample } | ConvertTo-Csv | Out-File $reportCsvFilePath +$Results | Sort-Object { $_.Sample } | ConvertTo-Html -Title "Overview" | Out-File $reportFilePath +Invoke-Item $reportFilePath |
