Skip to content

Commit

Permalink
Switch to @vscode/test-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
winstliu committed Sep 16, 2024
1 parent c461b16 commit 4873fe4
Show file tree
Hide file tree
Showing 9 changed files with 2,044 additions and 710 deletions.
2 changes: 0 additions & 2 deletions .azure-pipelines/common-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ steps:

- script: npm run test
displayName: Run tests
env:
DISPLAY: ':99.0'

- script: npm run lint
displayName: Lint
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
dist
out
node_modules
Expand Down
16 changes: 16 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @ts-check

import { defineConfig } from '@vscode/test-cli';
import path from 'path';

export default defineConfig({
files: 'out/test/**/*.test.js',
workspaceFolder: path.join(import.meta.dirname, 'src', 'test', 'workspace'),
mocha: {
timeout: 100000,
},
coverage: {
reporter: ['cobertura', 'text', 'html'],
output: './coverage',
}
});
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"testConfiguration": "${workspaceFolder}/.vscode-test.js",
"args": [
"${workspaceFolder}/src/test/workspace",
"--extensionDevelopmentPath=${workspaceFolder}",
Expand Down
3 changes: 2 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

.gitattributes
.gitignore
.vscode-test.mjs
tsconfig.json
tslint.json
webpack.config.js
.azure-pipelines/
.vscode/
.vscode-test/
coverage/
dist/**/*.map
examples/
node_modules/
Expand Down
Loading

0 comments on commit 4873fe4

Please sign in to comment.