Skip to content

Commit c389028

Browse files
author
Filip Pospisil
committed
chore: add flag to catch errors on ci for test
1 parent 0d0f16e commit c389028

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/template-runner.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ jobs:
6363
NODE_OPTIONS: --force-node-api-uncaught-exceptions-policy=true
6464
run: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run test:runner:unit
6565

66+
- name: Dump VS Code extension-host logs
67+
if: failure()
68+
run: |
69+
echo "=== Extension-Host Logs ==="
70+
find packages/extester-runner/.vscode-test -type f -name '*.log' \
71+
-exec printf "\n--- %s ---\n" {} \; \
72+
-exec head -n 200 {} \;
73+
6674
- name: 🔍 Run UI Tests (macOS, windows)
6775
if: ${{ ! startsWith(matrix.os, 'ubuntu') }}
6876
run: npm run test:runner:ui

packages/extester-runner/src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function main() {
4141
vscodeExecutablePath,
4242
extensionDevelopmentPath,
4343
extensionTestsPath,
44-
launchArgs: ['--disable-workspace-trust', '--user-data-dir', `${os.tmpdir()}/.vscode-test`, '--force-node-api-uncaught-exceptions-policy=true'],
44+
launchArgs: ['--disable-workspace-trust', '--user-data-dir', `${os.tmpdir()}/.vscode-test`, '--verbose', '--log', 'extensionHost:trace'],
4545
});
4646
} catch (err) {
4747
console.error(err);

0 commit comments

Comments
 (0)