Add ability for pytest to run only on changed tests in codebase (#86776)

This commit is contained in:
Franck Nijhof 2023-01-27 10:35:18 +01:00 committed by GitHub
parent ae6bc96002
commit 42c4f2f7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

14
.vscode/tasks.json vendored
View File

@ -27,6 +27,20 @@
},
"problemMatcher": []
},
{
"label": "Pytest (changed tests only)",
"type": "shell",
"command": "pytest --timeout=10 --picked",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Flake8",
"type": "shell",

View File

@ -26,6 +26,7 @@ pytest-test-groups==1.0.3
pytest-sugar==0.9.5
pytest-timeout==2.1.0
pytest-unordered==0.5.2
pytest-picked==0.4.6
pytest-xdist==2.5.0
pytest==7.2.1
requests_mock==1.10.0