A tool to run your tests way more often than necessary.
Run this:
$ testincessantly dir test-cmd ...
and every time you create/modify/delete a file under dir
, test-cmd ...
will get executed.
Just pip install testincessantly
.
I typically invoke this as
$ testincessantly -e '.*' -e '__pycache__' . pytest
The -e
options exclude dotfiles and anything named __pycache__
.
Okay, that was a lie. I actually typically invoke
$ testincessantly -e '.*' -e '__pycache__' . chime-success pytest
chime-success
is a script on my PATH
that makes a noise indicating whether the argument-command passed or failed. Now, every time I save a file, I get a chime telling me whether things are still good or not.