logo

... entr.


There are moments when you'd automatically want to run a script the moment that a file updates. Instead of running these things by hand we can use a nifty tool called entr to help us automate these things. The project page for this tool can be found here.


Notes

This video assumes that you've already installed entr. On MacOS you can run;

brew install entr

If you're running linux then you can build this yourself. If you're running ubuntu then you might also be able to install via:

sudo apt-get update
sudo apt-get install entr

Either way, assuming you've got entr installed you can now automatically run the unit tests apon saving by running:

ls checking/*.py | entr pytest test.py::test_starts_correctly

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.