Skip to content

Commit

Permalink
first ossature of integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgourlain committed May 11, 2024
1 parent 751aab3 commit bffa1b4
Show file tree
Hide file tree
Showing 14 changed files with 6,355 additions and 319 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pr-verify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: pr-verify

on: [push, pull_request]

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
pr-verify-job:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
Expand All @@ -21,3 +27,8 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: npm install -g typescript "vsce"
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ _build/
/syntaxes/*.yaml-tmLanguage
apps/erlangbridge/src/vscode_erlfmt_parse.erl
dist
.vscode-test

5 changes: 5 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
files: 'out/test/**/*.test.js',
});
13 changes: 9 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out"],
"preLaunchTask": "tsc: build - tsconfig.json"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"args": [
"${workspaceFolder}/test-temp/",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceRoot}/out/test/test-suite"
],
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test"],
"preLaunchTask": "tsc: build - tsconfig.json"
"outFiles": ["${workspaceFolder}/out/**/*.js"],
// "preLaunchTask": "prepareTest",
// "postDebugTask": "cleanTestFolder"
}
]
}
Loading

0 comments on commit bffa1b4

Please sign in to comment.