Created
April 27, 2023 07:47
-
-
Save wedesoft/e6be67b689011265011565a1b5604a2c to your computer and use it in GitHub Desktop.
Guard script to automatically run tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
clear; | |
poetry run pytest "$@"; | |
git ls-files -z | xargs -0 inotifywait -e CLOSE_WRITE; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment