diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4b62a16042d..1c186e08321 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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", diff --git a/requirements_test.txt b/requirements_test.txt index 5cf07345d49..93253105c83 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -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