Setup tox
This commit is contained in:
parent
18c6ba62bb
commit
55f1599a7a
5 changed files with 37 additions and 7 deletions
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
|
@ -68,6 +68,7 @@
|
|||
"**/.pytest_cache": true,
|
||||
"**/*.egg-info": true,
|
||||
"**/*.cache": true,
|
||||
"**/*.tox": true,
|
||||
"**/tracing_database.json": true
|
||||
},
|
||||
"notebook.output.textLineLimit": 400,
|
||||
|
|
|
|||
22
.vscode/tasks.json
vendored
22
.vscode/tasks.json
vendored
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue