I'm working on a large GUI Program and even after years of development I still have not a single test case. I removed a lot of the needs by using Eiffel together with disciplined coding and Design By Contract.
But sometimes I feel that having unit tests might help me. But whenever I try to write some down I soon run into the problem with GUI testing (IMHO still an open challenge at the research side) and trying to isolate the code from the environment seems to be even more difficult.
Think of my work as writing very complex plugins for something like Eclipse.
So my new idea is to add a Lua scripting interface to the application and run the tests inside the program instead of separate unit tests. Or should I really try and spend a lot of refactoring hours (and mockup object writing) to make the application unit testing capable?