Tonight, I wanted to try out pyTDDmon with the latest interface changes.
So I thought I’d go for a cool little kata I’ve been thinking of for some time now: implementing a Reverse Polish Notation calculator.
I coded using Programmers Notepad 2 (a quite new editor acquaintance to me, I like it! Minimalistic yet powerful enough), while having pyTDDmon running in the background.
I also kept everything in a single file for simplicity’s sake. Check it out: test_rpn.py.
After consulting with Carlos Ble (on the mailing list), I’ve decided to strip some clutter from the main window of pyTDDmon.
The image shows pyTDDmon’s main window before (to the left) and after (to the right) in Windows.
As you can see, the window lacks maximize/minimize buttons, and the Tkinter-icon (which I found quite, hrm, kitsch) is gone too.
Also, instead of writing lots of different text messages depending on the number of tests that passes/fails, I simply type the number of passing tests (left number) divided by the total number of tests (right number).
Some more small improvements:
- The window is clickable, thus should feel like a button, more or less. So I added a raised border around it, making it look more clickable!
- The Details window, displayed when clicking pyTDDmon, appeared below pyTDDmon. A bug now removed.
- There was a graphical artifact near the right border of the main window, seen in the image above. Fixed.
Update: bitbucket.org (where pyTDDmon’s source is hosted) has some file-caching mechanism, so the download-file didn’t update. I didn’t like that, so I’ve moved the primary download location to this server instead.
This is the brand new home of pytddmon. It will contain announcements, rumours and facts about pytddmon, the continous test-driven development tool for Python.
pytddmon is an open-source application written in Python, that helps out testing Python-based software.