Mod to export-excel to be appveyor friendly

This commit is contained in:
jhoneill
2018-07-13 00:09:21 +01:00
parent 87c2ff610d
commit 82efbef979

View File

@@ -13,15 +13,15 @@ Describe ExportExcel {
$processes = Get-Process $processes = Get-Process
$propertyNames = $Processes[0].psobject.properties.name $propertyNames = $Processes[0].psobject.properties.name
$rowcount = $Processes.Count $rowcount = $Processes.Count
$Processes | Export-Excel $path -show $Processes | Export-Excel $path #-show
it "Created a new file " { it "Created a new file " {
Test-Path -Path $path -ErrorAction SilentlyContinue | Should be $true Test-Path -Path $path -ErrorAction SilentlyContinue | Should be $true
} }
it "Started Excel to display the file " { # it "Started Excel to display the file " {
Get-process -Name Excel, xlim -ErrorAction SilentlyContinue | Should not benullorempty # Get-process -Name Excel, xlim -ErrorAction SilentlyContinue | Should not benullorempty
} # }
Start-Sleep -Seconds 5 ; Start-Sleep -Seconds 5 ;