mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +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
|
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
|
||||||
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
||||||
|
if ($testCases.Count -gt 0) {
|
||||||
It "Extension <VsixId>" -TestCases $testCases {
|
It "Extension <VsixId>" -TestCases $testCases {
|
||||||
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
$objVsix = $AllPackages | Where-Object { $_.id -eq $VsixId }
|
||||||
$objVsix | Should -Not -BeNullOrEmpty
|
$objVsix | Should -Not -BeNullOrEmpty
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user