File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,12 @@ export class VscodeRunme {
157
157
* @returns Returns the container running the tests.
158
158
*/
159
159
@func ( )
160
- async integrationTest ( runmeTestToken ?: Secret , debug = false , spec ?: string ) : Promise < Container > {
160
+ async integrationTest (
161
+ runmeTestToken ?: Secret ,
162
+ debug = false ,
163
+ spec ?: string ,
164
+ vscodeVersion ?: string ,
165
+ ) : Promise < Container > {
161
166
await this . base ( )
162
167
163
168
const e2eTestCommand = [ 'xvfb-run' , 'npx wdio run ./wdio.conf.ts' ]
@@ -180,6 +185,10 @@ export class VscodeRunme {
180
185
. withEnvVariable ( 'RUNME_TEST_EXTENSION' , path )
181
186
}
182
187
188
+ if ( vscodeVersion ) {
189
+ container = container . withEnvVariable ( 'RUNME_TEST_VSCODE_VERSION' , vscodeVersion )
190
+ }
191
+
183
192
return (
184
193
container
185
194
// Run e2e tests exclusively from bundle not source/dependencies
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
9
9
const workspacePath = path . join ( __dirname , '..' , '..' )
10
10
const extensionPath = process . env . RUNME_TEST_EXTENSION || workspacePath
11
11
const specFileRetries = Number ( process . env . RUNME_TEST_SPEC_RETRIES ) ?? 1
12
+ const browserVersion = process . env . RUNME_TEST_VSCODE_VERSION || 'stable'
12
13
13
14
export const config : Options . Testrunner = {
14
15
//
@@ -94,7 +95,7 @@ export const config: Options.Testrunner = {
94
95
capabilities : [
95
96
{
96
97
browserName : 'vscode' ,
97
- browserVersion : 'stable' ,
98
+ browserVersion,
98
99
'wdio:vscodeOptions' : {
99
100
extensionPath,
100
101
workspacePath,
You can’t perform that action at this time.
0 commit comments