File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 "type" : " extensionHost" ,
1717 "request" : " launch" ,
1818 "runtimeExecutable" : " ${execPath}" ,
19- "args" : [" --extensionDevelopmentPath=${workspaceRoot}" , " --extensionTestsPath=${workspaceRoot}/out/test/suite" ],
19+ "args" : [
20+ " --disable-extensions" ,
21+ " --extensionDevelopmentPath=${workspaceRoot}" ,
22+ " --extensionTestsPath=${workspaceRoot}/out/test/suite"
23+ ],
2024 "outFiles" : [ " ${workspaceRoot}/out/test/**/*.js" ],
2125 "preLaunchTask" : " compileAndCopyTestResources"
2226 }
Original file line number Diff line number Diff line change @@ -4,16 +4,19 @@ import { runTests } from 'vscode-test';
44
55async function main ( ) {
66 try {
7- // The folder containing the Extension Manifest package.json
8- // Passed to `--extensionDevelopmentPath`
9- const extensionDevelopmentPath = path . resolve ( __dirname , '../' ) ;
10-
11- // The path to the extension test script
12- // Passed to --extensionTestsPath
7+ // The paths are relative from the `/out/test` folder.
8+ const extensionDevelopmentPath = path . resolve ( __dirname , '../../' ) ;
139 const extensionTestsPath = path . resolve ( __dirname , './suite' ) ;
1410
1511 // Download VS Code, unzip it and run the integration test
16- await runTests ( { extensionDevelopmentPath, extensionTestsPath } ) ;
12+ await runTests ( {
13+ extensionDevelopmentPath,
14+ extensionTestsPath,
15+ launchArgs : [
16+ // This disables all extensions except the one being tested.
17+ '--disable-extensions'
18+ ] ,
19+ } ) ;
1720 } catch ( err ) {
1821 console . error ( 'Failed to run tests' ) ;
1922 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments