microsoft / vscode-test-cli

Command-line runner for VS Code tests
MIT License
19 stars 7 forks source link

Windows run causes: Error: Spawn EACCES #16

Closed roco1234 closed 7 months ago

roco1234 commented 7 months ago

Running tests with "win32-arm64-archive" or using a windows-latest build in github actions will cause:

Test error: Error: spawn /Users/.../hello-world/.vscode-test/vscode-win32-arm64-archive-1.85.2/Code.exe EACCES Exit code: -13 Failed Error: Test process exited with code 1

export default defineConfig({
  files: "out/**/*.test.js",
  mocha: {
    fullTrace: true
  },
  desktopPlatform: "win32-arm64-archive",
  launchArgs: ["--disable-extensions"]
});

Running locally in VSCode Insiders

Mac: Sonoma 14.2.1 VSCode Insiders: Version: 1.86.0-insider (Universal) Electron: 27.2.1 ElectronBuildId: 26149897 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.2.0

To replicate locally: Use the hello-world vscode example npm install -g yo generator-code and add desktopPlatform: "win32-arm64-archive" to the .vscode-test.mjs config.

To replicate in github actions: Use this example: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions