A script that watches files and re-runs tests when files have changed.
For now install from git with the following:
pip install -e git+git://github.com/cezar-berea/testwatch.git@master
testwatch --command py.test tests
====================
- use
pyinotify
to monitor files; no polling - file changes events should be throttled
- simple invocation:
testwatch --command <test runner invocation>
- decent feedback and output messages
- inclusion/exclusion of files to watch
- flexible configuration
- stop and restart tests if a file changes while tests ar running
- keyboard shortcuts for manualy restarting tests