Skip to content

Commit 8a54bc6

Browse files
committed
Use vscode-test-cli for integration tests
1 parent 3c10f89 commit 8a54bc6

21 files changed

Lines changed: 1716 additions & 1069 deletions

.github/workflows/codequality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: xvfb-run --auto-servernum npm run test
2323

2424
- name: 🧪 Run Integrationtests
25-
run: xvfb-run --auto-servernum npm run e2e-test
25+
run: xvfb-run --auto-servernum npm run integration-test
2626

2727
- name: 🧪 Test Building of Artifact
2828
run: npx @vscode/vsce package

.vscode-test.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// .vscode-test.mjs
2+
import { defineConfig } from '@vscode/test-cli';
3+
import { fileURLToPath } from 'url';
4+
import { dirname } from 'path';
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = dirname(__filename);
8+
9+
export default defineConfig([
10+
{
11+
// Required: Glob of files to load (can be an array and include absolute paths).
12+
files: 'client/out/test/**/*.test.js',
13+
// Optional: Version to use, same as the API above, defaults to stable
14+
version: 'insiders',
15+
// Optional: Root path of your extension, same as the API above, defaults
16+
// to the directory this config file is in
17+
extensionDevelopmentPath: __dirname,
18+
// Optional: sample workspace to open
19+
workspaceFolder: `${__dirname}/client/src/test/fixtures`,
20+
// Optional: install additional extensions to the installation prior to testing. By
21+
//default, any `extensionDependencies` from the package.json are automatically installed.
22+
// Optional: additional mocha options to use:
23+
mocha: {
24+
timeout: 100000
25+
}
26+
},
27+
// you can specify additional test configurations if necessary
28+
]);

0 commit comments

Comments
 (0)