diff --git a/images/win/scripts/Tests/Vsix.Tests.ps1 b/images/win/scripts/Tests/Vsix.Tests.ps1 index 1539601b5..b92f862ea 100644 --- a/images/win/scripts/Tests/Vsix.Tests.ps1 +++ b/images/win/scripts/Tests/Vsix.Tests.ps1 @@ -4,9 +4,10 @@ Describe "Vsix" { $allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages $testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }} - - It "Extension " -TestCases $testCases { - $objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId } - $objVsix | Should -Not -BeNullOrEmpty + if ($testCases.Count -gt 0) { + It "Extension " -TestCases $testCases { + $objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId } + $objVsix | Should -Not -BeNullOrEmpty + } } } \ No newline at end of file