Christopher Tyler

git diff with pytest

I heard this while listening to Test and Code. Brian was talking to Adam Johnson.

1
$ pytest $(git diff --name-only *tests*)

I can see using this as a good way to only run changed tests.

<< Previous Post

|

Next Post >>

#Pytest #Git #Brian Okken #Adam Johnson