From 02348f1c0e690f504294f608ecc864079ffc68f4 Mon Sep 17 00:00:00 2001 From: James Stronz Date: Sun, 14 Jul 2019 13:36:44 -0500 Subject: [PATCH] added vs code testing cfgs; updated gitignore venv --- .gitignore | 1 + .vscode/launch.json | 18 ++++++++++++++++++ .vscode/settings.json | 13 +++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index f2b0ec7e..81922244 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .project .pydevproject .settings +.venv dist MANIFEST __pycache__ diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..0228d642 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // 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: Module", + "type": "python", + "request": "launch", + "module": "unittest", + "args": [ "discover", "-p", "test_*.py"], + "env": {"PYTHONPATH": "${workspaceFolder}", + "PYTHONSTARTUP": "${workspaceFolder}\\.venv\\Scripts\\activate"}, + "cwd": "${workspaceFolder}\\tests" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..e452cf21 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "python.testing.unittestArgs": [ + "-v", + "-s", + "./tests", + "-p", + "test*.py" + ], + "python.testing.pytestEnabled": false, + "python.testing.nosetestsEnabled": false, + "python.testing.unittestEnabled": true, + "python.pythonPath": "C:\\Users\\jim\\AppData\\Local\\Programs\\Python\\Python37\\python.exe" +} \ No newline at end of file