From 2d021a83cfcb90c5355a690f07260f7da094889d Mon Sep 17 00:00:00 2001 From: smilerz Date: Wed, 13 Mar 2024 08:25:22 -0500 Subject: [PATCH] Update launch.json adding .vscode configuration to the project broke/changed a bunch of stuff. this fixes the ability to debug pytest --- .vscode/launch.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index e1c25328c..cc144c06e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,6 +13,22 @@ "args": ["runserver"], "django": true, "justMyCode": true - } + }, + { + "name": "Python: Debug Tests", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "purpose": [ + "debug-test" + ], + "console": "integratedTerminal", + "env": { + "//comment": "coverage and pytest can't both be running at the same time", + "PYTEST_ADDOPTS": "--no-cov -n 2" + }, + "django": true, + "justMyCode": true + }, ] - } \ No newline at end of file + }