@@ -99,18 +99,29 @@ steps:
99
99
timeoutInMinutes : 20
100
100
101
101
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }} :
102
+ - powershell : |
103
+ # Copy client, server and web builds to a separate test directory, to avoid Access Denied errors in codesign
104
+ . build/azure-pipelines/win32/exec.ps1
105
+ $ErrorActionPreference = "Stop"
106
+ $TestDir = "$(agent.builddirectory)\test"
107
+ New-Item -ItemType Directory -Path $TestDir -Force
108
+ Copy-Item -Path "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)" -Destination "$TestDir\VSCode-win32-$(VSCODE_ARCH)" -Recurse -Force
109
+ Copy-Item -Path "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)" -Destination "$TestDir\vscode-server-win32-$(VSCODE_ARCH)" -Recurse -Force
110
+ Copy-Item -Path "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)-web" -Destination "$TestDir\vscode-server-win32-$(VSCODE_ARCH)-web" -Recurse -Force
111
+ displayName: Copy builds to test directory
112
+
102
113
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }} :
103
114
- powershell : |
104
115
# Figure out the full absolute path of the product we just built
105
116
# including the remote server and configure the integration tests
106
117
# to run with these builds instead of running out of sources.
107
118
. build/azure-pipelines/win32/exec.ps1
108
119
$ErrorActionPreference = "Stop"
109
- $AppRoot = "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
120
+ $AppRoot = "$(agent.builddirectory)\test\ VSCode-win32-$(VSCODE_ARCH)"
110
121
$AppProductJson = Get-Content -Raw -Path "$AppRoot\resources\app\product.json" | ConvertFrom-Json
111
122
$AppNameShort = $AppProductJson.nameShort
112
123
$env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"
113
- $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)"
124
+ $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\test\ vscode-server-win32-$(VSCODE_ARCH)"
114
125
exec { .\scripts\test-integration.bat --build --tfs "Integration Tests" }
115
126
displayName: 🧪 Run integration tests (Electron)
116
127
timeoutInMinutes: 20
@@ -119,7 +130,7 @@ steps:
119
130
- powershell : |
120
131
. build/azure-pipelines/win32/exec.ps1
121
132
$ErrorActionPreference = "Stop"
122
- $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)-web"
133
+ $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\test\ vscode-server-win32-$(VSCODE_ARCH)-web"
123
134
exec { .\scripts\test-web-integration.bat --browser firefox }
124
135
displayName: 🧪 Run integration tests (Browser, Firefox)
125
136
timeoutInMinutes: 20
@@ -128,11 +139,11 @@ steps:
128
139
- powershell : |
129
140
. build/azure-pipelines/win32/exec.ps1
130
141
$ErrorActionPreference = "Stop"
131
- $AppRoot = "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
142
+ $AppRoot = "$(agent.builddirectory)\test\ VSCode-win32-$(VSCODE_ARCH)"
132
143
$AppProductJson = Get-Content -Raw -Path "$AppRoot\resources\app\product.json" | ConvertFrom-Json
133
144
$AppNameShort = $AppProductJson.nameShort
134
145
$env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"
135
- $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)"
146
+ $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\test\ vscode-server-win32-$(VSCODE_ARCH)"
136
147
exec { .\scripts\test-remote-integration.bat }
137
148
displayName: 🧪 Run integration tests (Remote)
138
149
timeoutInMinutes: 20
@@ -164,23 +175,23 @@ steps:
164
175
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }} :
165
176
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }} :
166
177
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
167
- - powershell : npm run smoketest-no-compile -- -- --verbose --tracing --build "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
178
+ - powershell : npm run smoketest-no-compile -- -- --verbose --tracing --build "$(agent.builddirectory)\test\ VSCode-win32-$(VSCODE_ARCH)"
168
179
displayName : 🧪 Run smoke tests (Electron)
169
180
timeoutInMinutes : 20
170
181
171
182
- ${{ if eq(parameters.VSCODE_RUN_BROWSER_TESTS, true) }} :
172
183
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
173
184
- powershell : npm run smoketest-no-compile -- -- --web --tracing --headless
174
185
env :
175
- VSCODE_REMOTE_SERVER_PATH : $(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)-web
186
+ VSCODE_REMOTE_SERVER_PATH : $(agent.builddirectory)\test\ vscode-server-win32-$(VSCODE_ARCH)-web
176
187
displayName : 🧪 Run smoke tests (Browser, Chromium)
177
188
timeoutInMinutes : 20
178
189
179
190
- ${{ if eq(parameters.VSCODE_RUN_REMOTE_TESTS, true) }} :
180
191
# Additional "--" needed to workaround https://github.com/npm/cli/issues/7375
181
- - powershell : npm run smoketest-no-compile -- -- --tracing --remote --build "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
192
+ - powershell : npm run smoketest-no-compile -- -- --tracing --remote --build "$(agent.builddirectory)\test\ VSCode-win32-$(VSCODE_ARCH)"
182
193
env :
183
- VSCODE_REMOTE_SERVER_PATH : $(agent.builddirectory)\vscode-server-win32-$(VSCODE_ARCH)
194
+ VSCODE_REMOTE_SERVER_PATH : $(agent.builddirectory)\test\ vscode-server-win32-$(VSCODE_ARCH)
184
195
displayName : 🧪 Run smoke tests (Remote)
185
196
timeoutInMinutes : 20
186
197
0 commit comments