Files
runner-images/images/win/scripts/Tests/Vsix.Tests.ps1
Andrey Mishechkin (GITHUB INC) f0f5024ec9 Vsix.Tests.ps1 - condition has been added
2020-09-16 19:16:22 +04:00

13 lines
530 B
PowerShell

Describe "Vsix" {
$toolset = Get-ToolsetContent
$requiredVsixs = $toolset.visualStudio.vsix
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
if ($testCases.Count -gt 0) {
It "Extension <VsixId>" -TestCases $testCases {
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
$objVsix | Should -Not -BeNullOrEmpty
}
}
}