mirror of
https://github.com/actions/runner-images.git
synced 2026-01-04 01:03:18 +08:00
Vsix Tests have been created. Old files have been removed
This commit is contained in:
12
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
12
images/win/scripts/Tests/Vsix.Tests.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
Describe "VsixTests" {
|
||||
$toolset = Get-ToolsetContent
|
||||
$requiredVsixs = $toolset.visualStudio.vsix
|
||||
|
||||
$allPackages = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages
|
||||
$testCases = $requiredVsixs | ForEach-Object { @{ VsixId = $_.Id; AllPackages = $allPackages }}
|
||||
|
||||
It "<VsixId>" -TestCases $testCases {
|
||||
$objVsix = $AllPackages | Where-Object {$_.id -eq $VsixId } | Select-Object Id, Version
|
||||
$objVsix | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user