mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
* 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>
30 lines
762 B
PowerShell
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
|
|
}
|