From 0eced4a5a09c1fb8b165213b2a3568764fe7ddf3 Mon Sep 17 00:00:00 2001 From: Marnix Kraus Date: Mon, 7 Oct 2024 15:44:12 +0200 Subject: [PATCH] Make tests debuggable in vs code --- .gitignore | 1 - .vscode/launch.json | 16 ++++++++++++++++ .vscode/settings.json | 7 +++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 40afb59..e661bef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ build/ docs/examples/*.ipynb venv/ -.vscode .DS_Store .ruff_cache *.egg-info diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a73b470 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "purpose": ["debug-test"] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b2b8866 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "python.testing.pytestArgs": [ + "test" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} \ No newline at end of file