Files
mcp-microsoft/eng/scripts/Test-VSCodeIntegration.ps1
T
Xiang YanandCopilot 2ad0e004e3 Add the integration test to validate latest vs code with the elicitat… (#2549)
* Add the integration test to validate latest vs code with the elicitation feature.

Co-authored-by: Copilot <copilot@github.com>

* update

* update

* update

* update timeout

* update

* update

* update

* update

* updates

Co-authored-by: Copilot <copilot@github.com>

* update

* update

* update tests

* clean up tempRoot

Co-authored-by: Copilot <copilot@github.com>

* address review feedback

Co-authored-by: Copilot <copilot@github.com>

* fix test

Co-authored-by: Copilot <copilot@github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
2026-05-05 11:09:15 -07:00

30 lines
762 B
PowerShell

#!/usr/bin/env pwsh
#Requires -Version 7
[CmdletBinding()]
param(
[string] $VsCodeProjectPath = 'servers/Azure.Mcp.Server/vscode'
)
$ErrorActionPreference = 'Stop'
. "$PSScriptRoot/../common/scripts/common.ps1"
$RepoRoot = $RepoRoot.Path.Replace('\', '/')
$projectPath = Join-Path $RepoRoot $VsCodeProjectPath
if (!(Test-Path $projectPath)) {
Write-Error "VS Code project path not found: $projectPath"
}
Push-Location $projectPath
try {
Invoke-LoggedCommand 'npm ci --omit=optional'
# The test clears VS Code download caches, fetches the latest stable VS Code build,
# and starts Azure MCP via npx @azure/mcp@latest before driving the UI with Playwright.
Invoke-LoggedCommand 'npm run outerloop-test'
}
finally {
Pop-Location
}