mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
26 lines
691 B
PowerShell
26 lines
691 B
PowerShell
param(
|
|
$PesterTestsPath = "$PSScriptRoot\..\..\..\__tests__\"
|
|
)
|
|
|
|
$xlfile = "$env:Temp\testResults.xlsx"
|
|
Remove-Item $xlfile -ErrorAction SilentlyContinue
|
|
|
|
$xlparams = @{
|
|
Path = $xlfile
|
|
InputObject = (Invoke-Pester -Script $PesterTestsPath -PassThru).TestResult | Sort-Object describe
|
|
WorksheetName = 'FullResults'
|
|
|
|
IncludePivotTable = $true
|
|
PivotRows = 'Describe'
|
|
PivotColumns = 'Passed'
|
|
PivotData = @{'Passed' = 'Count' }
|
|
|
|
IncludePivotChart = $true
|
|
ChartType = 'BarClustered'
|
|
|
|
AutoSize = $true
|
|
AutoFilter = $true
|
|
Activate = $true
|
|
}
|
|
|
|
Export-Excel -Show @xlparams |