Skip to content

Commit

Permalink
Users/pgo/extension tests (#293)
Browse files Browse the repository at this point in the history
* fix warning

* first ossature of integration tests
  • Loading branch information
pgourlain authored May 11, 2024
1 parent 4994d55 commit ee831c0
Show file tree
Hide file tree
Showing 15 changed files with 6,355 additions and 320 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"
}
]
}
1 change: 0 additions & 1 deletion apps/erlangbridge/src/lsp_signature.erl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ map_clause_args(Args) ->
({map, _,_}) -> {'Map', map};
({tuple, _, _}) -> {'Tuple', tuple};
({record, _, RecType, _}) -> {'Record', record_name(RecType)};
({tuple, _, _}) -> {'Tuple', tuple};
({cons, _, _, _}) -> {'List', list};
({nil, _}) -> {'List', nil};
({_,_,ArgName}) -> {ArgName, any};
Expand Down
Loading

0 comments on commit ee831c0

Please sign in to comment.