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

View File

@@ -18,4 +18,6 @@ else {
$requiredVsixs | ForEach-Object {
Install-VsixExtension -url $_.url -name $_.name -VsVersion $VsVersion
}
}
Invoke-PesterTests -TestFile "Vsix"

View File

@@ -1,11 +0,0 @@
################################################################################
## File: Install-InstallerProjects.ps1
## Desc: Install the InstallerProjects Visual Studio Extension
################################################################################
Import-Module -Name ImageHelpers -Force
$InstallerProjectsUrl = 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/latest/vspackage'
Install-VsixExtension -Url $InstallerProjectsUrl -name "InstallerProjects.vsix" -VSversion "2019"
Invoke-PesterTests -TestFile "InstallerProjects"

View File

@@ -1,12 +0,0 @@
###################################################################################
## File: Install-SSDTExtensions.ps1
## Desc: Install the extensions previously known as SSDT package
###################################################################################
Import-Module -Name ImageHelpers -Force
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/2.9.5/vspackage' -Name 'Microsoft.DataTools.AnalysisServices.vsix' -VSversion "2019"
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/3.4/vspackage' -Name 'Microsoft.DataTools.IntegrationServices.exe' -VSversion "2019"
Install-VsixExtension -Url 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/2.6.3/vspackage' -Name 'Microsoft.DataTools.ReportingServices.vsix' -VSversion "2019"
Invoke-PesterTests -TestFile "SSDTExtensions"

View File

@@ -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
}
}

View File

@@ -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
}
}
}

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
}
}

View File

@@ -263,19 +263,23 @@
"vsix": [
{
"name": "Microsoft.DataTools.AnalysisServices.vsix",
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/latest/vspackage"
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/latest/vspackage",
"id": "04a86fc2-dbd5-4222-848e-911638e487fe"
},
{
"name": "Microsoft.DataTools.IntegrationServices.exe",
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/latest/vspackage"
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/SqlServerIntegrationServicesProjects/latest/vspackage",
"id": "851E7A09-7B2B-4F06-A15D-BABFCB26B970"
},
{
"name": "Microsoft.DataTools.ReportingServices.vsix",
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/latest/vspackage"
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftReportProjectsforVisualStudio/latest/vspackage",
"id": "717ad572-c4b7-435c-c166-c2969777f718"
},
{
"name": "Microsoft.VisualStudio.Installer.Projects.vsix",
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/latest/vspackage"
"url": "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/latest/vspackage",
"id": "VSInstallerProjects"
}
]
}