Subscribe

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.

autotest.py

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.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Technorati
  • Reddit
  • Digg
  • del.icio.us
  • StumbleUpon
  • DZone
  • ThisNext

Related posts:

Trackback URI | Comments RSS

Leave a Reply