From 370b497cc6f674b960f5cde115f00d64c2947c5b Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Tue, 12 Sep 2023 03:05:53 -0400 Subject: [PATCH] VS Code: Add launch configuration for debugging tests I just want to disable the external code skipping feature ("justMyCode") but I seem to have to abandon the pytest integration to do so? --- .vscode/launch.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index e1569ac..d2618cb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -47,6 +47,17 @@ "args": ["run", "--dev", "src.textual_paint.paint --clear-screen --restart-on-changes"], "console": "integratedTerminal", "justMyCode": false - } + }, + { + "name": "Debug Tests", + "type": "python", + "request": "launch", + "program": ".venv/bin/pytest", + // "args": ["tests/test_snapshots.py::test_paint_open_dialog"], + "console": "integratedTerminal", + "justMyCode": false, + // If using pytest-cov in the future: + // "env": {"PYTEST_ADDOPTS": "--no-cov"} + } ] } \ No newline at end of file