mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge main into install-codeql-bundle.
This commit is contained in:
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
13
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user