dein.fr

Charles-Axel Dein's personal website

Running pytest on modified files


Here's a very crude way to run pytest only on files that were added or modified:

pytest $(git ls-files --other --modified --exclude-standard | grep test)