Improving productivity with pyTDDmon

pyTDDmon is a nice open source tool developed by Olof Bjarnason. I haven't used JUnitMax but I guess it works seemingly. You just copy pyTDDmon.py into the same folder of your unit tests and launch it like this:

$ python pyTDDmon.py my_tests_file.py my_other_tests_file.py ...

A small window appears displaying green or red color. You can keep it always on top and continue  writing tests. Any time you change a test or a SUT and save the file, pyTDDmon runs all the tests within the files. So you don't have to stop writing code to run the tests. It is very handy. By clicking in the window, a verbose message is displayed with the results (which tests fail). I am glad to have helped Olof a little bit with some ideas and a bit of code.

Last version can be downloaded here.

Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
  • http://olofb.wordpress.com Olof Bjarnason

    Thanks for mentioning pyTDDmon. Note that the recommended way of running pyTDDmon is without any command line arguments:

    $ python pyTDDmon.py &

    .. since then you can rename your files (both production code and unit tests) any way you want, and also add new unit tests.

    Listing which modules to test using the command line (test_1.py test_2.py etc.) is a way of speeding up the test-process if you have *lots* (I mean thousands) of tests — or really slow tests (invoking database or other resource intensive things).

    Also – thanks for contributing the code to pyTDDmon. Even if I had to change it a bit, I was forced to solve the speed problem and the enforced unittest.main()-problem previously found in pyTDDmon.

    Cya!

  • http://objarni.wordpress.com Olof Bjarnason

    pyTDDmon has moved! 🙂

    New home

  • http://www.iLoveLatins.com Single Women

    Good website! I truly love how it is simple on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your feed which must do the trick! Have a nice day! Goldstar Locksmith 9620 w russell rd #2134 las vegas NV 89148 United States 702-475-6828