Setup tox

This commit is contained in:
Andras Schmelczer 2022-07-29 12:59:41 +02:00
parent 18c6ba62bb
commit 55f1599a7a
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
5 changed files with 37 additions and 7 deletions

22
.vscode/tasks.json vendored
View file

@ -18,11 +18,27 @@
}
},
{
"label": "Test",
"label": "Test (quick)",
"type": "shell",
"command": "source .env/bin/activate && python3 -m pytest . --doctest-modules",
"command": "source .env/bin/activate && python3 -m pytest . --doctest-modules --asyncio-mode=strict",
"windows": {
"command": ".env\\bin\\activate.bat; python3 -m pytest . --doctest-modules"
"command": ".env\\bin\\activate.bat; python3 -m pytest . --doctest-modules --asyncio-mode=strict"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "Test (all Python versions)",
"type": "shell",
"command": "source .env/bin/activate && python3 -m tox",
"windows": {
"command": ".env\\bin\\activate.bat; python3 -m tox"
},
"group": "test",
"presentation": {