Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add launch.json for debugging tests #9599

Merged
merged 4 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: Add launch.json for debugging tests
  • Loading branch information
Lightning00Blade authored and jrandolf-2 committed Feb 1, 2023
commit 9ef651d6b84e06d0d66a5312a7e393cbb2797b9f
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ generated/

# IDE Artifacts
.vscode
!.vscode/extensions.json
!.vscode/launch.json
.devcontainer

# Misc
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ generated/
# IDE Artifacts
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
.devcontainer

# Misc
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ generated/
# IDE Artifacts
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
.devcontainer

# Misc
Expand Down
43 changes: 43 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"inputs": [
{
"type": "pickString",
"id": "suit",
"description": "Which test suit to run?",
"options": [
"chrome-headless",
"chrome-headful",
"chrome-new-headless",
"firefox-headless",
"firefox-headful",
"firefox-bidi",
"chrome-bidi"
],
"default": "chrome-headless"
}
],
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Tests",
"skipFiles": ["<node_internals>/**"],
"program": "tools/mochaRunner/lib/main.js",
"cwd": "${workspaceFolder}",
"env": {
"PUPPETEER_DEFERRED_PROMISE_DEBUG_TIMEOUT": "20000"
},
"args": [
"--test-suite",
"${input:suit}",
"--no-coverage",
"--no-suggestions"
],
"outFiles": ["${workspaceFolder}/**/*.js"]
}
]
}