Skip to content

Commit

Permalink
added vs code testing cfgs; updated gitignore venv
Browse files Browse the repository at this point in the history
  • Loading branch information
comrumino committed Jul 14, 2019
1 parent 4dec5d4 commit 02348f1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.project
.pydevproject
.settings
.venv
dist
MANIFEST
__pycache__
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 02348f1

Please # to comment.