From 3a11c0a74689ab08b5915b4742aff0ecb19c35db Mon Sep 17 00:00:00 2001 From: Qubasa Date: Tue, 26 Sep 2023 20:00:30 +0200 Subject: [PATCH] Fixed vscode test debugging problem --- pkgs/clan-cli/.vscode/launch.json | 1 + pkgs/clan-cli/.vscode/settings.json | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/clan-cli/.vscode/launch.json b/pkgs/clan-cli/.vscode/launch.json index a15810ad..ab2ef11e 100644 --- a/pkgs/clan-cli/.vscode/launch.json +++ b/pkgs/clan-cli/.vscode/launch.json @@ -11,6 +11,7 @@ "module": "clan_cli.webui", "justMyCode": false, "args": [ "--reload", "--no-open", "--log-level", "debug" ], + } ] } \ No newline at end of file diff --git a/pkgs/clan-cli/.vscode/settings.json b/pkgs/clan-cli/.vscode/settings.json index 9b388533..66a301ca 100644 --- a/pkgs/clan-cli/.vscode/settings.json +++ b/pkgs/clan-cli/.vscode/settings.json @@ -1,7 +1,15 @@ { "python.testing.pytestArgs": [ + // Coverage is not supported by vscode: + // https://github.com/Microsoft/vscode-python/issues/693 + // Note that this will make pytest fail if pytest-cov is not installed, + // if that's the case, then this option needs to be be removed (overrides + // can be set at a workspace level, it's up to you to decide what's the + // best approach). You might also prefer to only set this option + // per-workspace (wherever coverage is used). + "--no-cov", "tests" ], "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true + "python.testing.pytestEnabled": true, } \ No newline at end of file