From 36213b758037fe46cd361a70676bcc86dfea11a4 Mon Sep 17 00:00:00 2001 From: Pierre Raybaut Date: Thu, 23 Nov 2023 10:11:51 +0100 Subject: [PATCH] VSCode: added launch configurations --- .vscode/launch.json | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 4c37d97..e1aa36f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,19 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "Run Test Launcher", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/plotpy/tests/__init__.py", + "console": "integratedTerminal", + "envFile": "${workspaceFolder}/.env", + "python": "${config:python.defaultInterpreterPath}", + "justMyCode": true, + "env": { + "QT_COLOR_MODE": "light", + } + }, { "name": "Run current file", "type": "python", @@ -13,27 +26,29 @@ "envFile": "${workspaceFolder}/.env", "python": "${config:python.defaultInterpreterPath}", "justMyCode": false, - // "args": [ - // "--unattended" - // ], "pythonArgs": [ "-W error::DeprecationWarning", ], "env": {} }, { - "name": "Python: Debug Tests", + "name": "Run current file (unattended)", "type": "python", "request": "launch", "program": "${file}", - "purpose": [ - "debug-test" - ], "console": "integratedTerminal", + "envFile": "${workspaceFolder}/.env", + "python": "${config:python.defaultInterpreterPath}", + "pythonArgs": [ + "-W error::DeprecationWarning", + ], + "justMyCode": false, + "args": [ + "--unattended" + ], "env": { - "PYTEST_ADDOPTS": "--no-cov" - }, - "justMyCode": false + "GUIDATA_PARSE_ARGS": "1", + } } ] } \ No newline at end of file