summaryrefslogtreecommitdiff
path: root/.vscode/launch.json
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-08-07 19:32:55 -0700
committerGitHub <noreply@github.com>2023-08-07 19:32:55 -0700
commitde1bea106850c6ad4f7d6447faa434b953a462e8 (patch)
tree9c270065157e7611519ef2af8ff1e272a4ac728b /.vscode/launch.json
parent34157ba9c6de24a5321b81716d31bc89e8b96471 (diff)
parentd8f5f102f6f91487be0281316e581858ec4ca260 (diff)
downloadsncontinue-de1bea106850c6ad4f7d6447faa434b953a462e8.tar.gz
sncontinue-de1bea106850c6ad4f7d6447faa434b953a462e8.tar.bz2
sncontinue-de1bea106850c6ad4f7d6447faa434b953a462e8.zip
Merge pull request #356 from bra1nDump/fix-testing
Fixed Mocha tests + added debugging configurations to vscode
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index c598750f..75ee1f7a 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -11,6 +11,14 @@
"Server",
"Extension (VSCode)"
]
+ },
+ {
+ "name": "Server + Tests (VSCode)",
+ "stopAll": true,
+ "configurations": [
+ "Server",
+ "Tests (VSCode)"
+ ]
}
],
"configurations": [
@@ -34,6 +42,7 @@
"request": "launch",
"cwd": "${workspaceFolder}/extension",
"args": [
+ // Pass a directory to manually test in
"${workspaceFolder}/extension/manual-testing-sandbox",
"--extensionDevelopmentPath=${workspaceFolder}/extension",
],
@@ -45,5 +54,32 @@
"CONTINUE_SERVER_URL": "http://localhost:8001"
}
},
+ // Has to be run after starting the server (separately or using the compound configuration)
+ {
+ "name": "Tests (VSCode)",
+ "type": "extensionHost",
+ "request": "launch",
+ "cwd": "${workspaceFolder}/extension",
+ "runtimeExecutable": "${execPath}",
+ "args": [
+ // Pass a directory to run tests in
+ "${workspaceFolder}/extension/manual-testing-sandbox",
+ "--extensionDevelopmentPath=${workspaceFolder}/extension",
+ "--extensionTestsPath=${workspaceFolder}/extension/out/test-runner/mochaRunner"
+ ],
+ "outFiles": [
+ // Allows setting breakpoints in test suites across the /src folder
+ "${workspaceFolder}/extension/out/test-suites/**/*.js",
+ // Allows setting breakpoints in mocha test runner file
+ "${workspaceFolder}/extension/out/test-runner/**/*.js"
+ ],
+ "internalConsoleOptions": "openOnSessionStart",
+ "preLaunchTask": "vscode-extension:tests:build",
+ "env": {
+ "CONTINUE_SERVER_URL": "http://localhost:8001",
+ // Avoid timing out when stopping on breakpoints during debugging in VSCode
+ "MOCHA_TIMEOUT": "0",
+ },
+ }
]
} \ No newline at end of file