From 08f5d6592b9a824d503397af2174f0b1f1d74879 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Fri, 9 Oct 2020 11:31:54 +0300 Subject: [PATCH] updated tests --- images/win/scripts/Tests/PipxPackages.Test.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/images/win/scripts/Tests/PipxPackages.Test.ps1 b/images/win/scripts/Tests/PipxPackages.Test.ps1 index fbb4c596..b41b8f8f 100644 --- a/images/win/scripts/Tests/PipxPackages.Test.ps1 +++ b/images/win/scripts/Tests/PipxPackages.Test.ps1 @@ -1,8 +1,7 @@ Describe "PipxPackages" { $pipxToolset = (Get-ToolsetContent).pipx - foreach($tool in $pipxToolset) { - It "${tool.package}" { - "${tool.cmd}" | Should -ReturnZeroExitCode - } + $testCases = $pipxToolset | ForEach-Object { @{package = $_.package; cmd = $_.cmd} } + It "" -TestCases $testCases { + "$cmd" | Should -ReturnZeroExitCode } } \ No newline at end of file