The test daemon watches the content of files in a directory and if any of them changes (the content is edited), it runs the tests.
Put the tdaemon somewhere where it's executable.
You may run like this:
$ tdaemon.py --test-program=nose /path/to/python/project
The daemon starts watching the directory and subdirectories. As soon as one file changes, the daemon runs the nosetests and you may watch the result.
Three test programs are available:
- nosetests (keyword is
- django (keyword is
- py.test (keyword is
When you're using django, the path to the project must be the path where
[ ] Benchmark it with larger files [ ] Extend the test utilities to other languages [ ] Add an "ignore" option to ignore other files (logs, sqlite database, image files, etc)
[X] implements py.test, if possible [X] Fixing bug: when a file vanished, the program fails. [X] I remember I made the first bits of the code after reading an article... [X] Find the link and name of the original author [X] add appropriate credits [X] Bugfix: When doing (e.g.) hg commit, it opens temporary files that are detected as "changed", and the daemon starts tests. It should be ignored (ref. ignore-directories)