Skip to content

Instantly share code, notes, and snippets.

@wedesoft
Created April 27, 2023 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wedesoft/e6be67b689011265011565a1b5604a2c to your computer and use it in GitHub Desktop.
Save wedesoft/e6be67b689011265011565a1b5604a2c to your computer and use it in GitHub Desktop.
Guard script to automatically run tests
#!/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