Vsix Tests have been created. Old files have been removed

This commit is contained in:
Andrey Mishechkin (GITHUB INC)
2020-09-11 12:42:29 +04:00
parent 40333f6adf
commit feaef58222
7 changed files with 23 additions and 56 deletions
@@ -1,7 +0,0 @@
Import-Module -Name VsSetup -Force
Describe "InstallProjects" {
It "InstallProjects exists" {
$InstallProjects = (Get-VSSetupInstance | Select-VsSetupInstance -Product *).Packages | Where-Object {$_.id -eq 'VSInstallerProjects' }
$InstallProjects | Should -Not -BeNullOrEmpty
}
}
@@ -1,21 +0,0 @@
Describe "SSDTExtensions" {
#These extensions don't have any proper name in the state.packages.json file, only id is available, which can be found on extension marketplace download page
if (Test-isWin19) {
$testExtenions = @(
@{id = "04a86fc2-dbd5-4222-848e-911638e487fe"}
@{id = "851E7A09-7B2B-4F06-A15D-BABFCB26B970"}
@{id = "717ad572-c4b7-435c-c166-c2969777f718"}
)
It "Extensions id=<id>" -TestCases $testExtenions {
$version = Get-VSExtensionVersion -packageName "${id}"
$version | Should -Not -BeNullOrEmpty
}
} else {
It "Extension SSDT" {
$version = Get-VSExtensionVersion -packageName "SSDT"
$version | Should -Not -BeNullOrEmpty
}
}
}
+12
View 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
}
}