pytest-picked: Run the Tests Related to the Unstaged Files in Git

pytest-picked: Run the Tests Related to the Unstaged Files in Git

It can be time-consuming to run all tests in your project. Wouldn’t it be nice if you can run only the tests related to the unstaged files in Git? That is when pytest-picked comes in handy.

In the code above, only tests in the file test_picked.py are executed because it is an unstaged file.

Link to pytest-picked.

My previous tips on testing in Python.

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran