Files
runner-images/images/macos/scripts/tests/PipxPackages.Tests.ps1
T

13 lines
396 B
PowerShell
Raw Normal View History

Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion
2024-09-03 18:45:06 +02:00
Describe "PipxPackages" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
2023-12-04 12:13:08 +01:00
$pipxToolset = (Get-ToolsetContent).pipx
2020-10-21 15:50:53 +03:00
$testCases = $pipxToolset | ForEach-Object { @{package = $_.package; cmd = $_.cmd} }
It "<package>" -TestCases $testCases {
"$cmd" | Should -ReturnZeroExitCode
}
}