From 90a9b244d7f1bd4c7ea57df4bfbf95e6cd7ecfd6 Mon Sep 17 00:00:00 2001 From: Ismael Sampaio Date: Thu, 20 Mar 2025 19:46:05 -0300 Subject: [PATCH] added python tests config to workspace settings --- .vscode/settings.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5f42843..2e97d59 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,14 +1,20 @@ { + "python.testing.pytestEnabled": false, + "python.testing.unittestEnabled": true, + "python.analysis.extraPaths": [ + "./src/service" + ], + "python.testing.unittestArgs": [ "-v", "-s", "./test", "-p", - "test_*.py" + "test_*.py", + "-t", + "./test" ], - "python.testing.pytestEnabled": false, - "python.testing.unittestEnabled": true, - "python.analysis.extraPaths": [ - "./src/service" - ] + "python.testing.autoTestDiscoverOnSavePattern": "test/**/test_*.py", + "python.envFile": "${workspaceFolder}/.env", + "python.testing.autoTestDiscoverOnSaveEnabled": true, } \ No newline at end of file