A Simple Continuous Test Script in Python
July 12th, 2007 by proj
I was working on an in-memory database prototype in python and decided I didn’t want to keep manually running the unit tests so I whipped up a little auto test script that I can run in another terminal.
It’s very simple it relies on a static list of files and an internal cache of the last modified time via stat(). The tests are implemented using standard pyunit. Any time a test or implementation file is written to disk it re-runs the tests. If you’ve never had a tool like this give it a try and I think you’ll find that it’s an enjoyable way to work.
Related posts:






