mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Vsix.Tests.ps1 - condition has been added
This commit is contained in:
@@ -4,9 +4,10 @@ Describe "Vsix" {
|
||||
|
||||
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
|
||||
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
||||
|
||||
It "Extension <VsixId>" -TestCases $testCases {
|
||||
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
||||
$objVsix | Should -Not -BeNullOrEmpty
|
||||
if ($testCases.Count -gt 0) {
|
||||
It "Extension <VsixId>" -TestCases $testCases {
|
||||
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
||||
$objVsix | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user