Wow, automated tests are saving my ass right now
Monday, February 8th, 2010 01:16 amWhen I first did renames, I didn't have the concept of a rename token object -- I had the shop item, and then I was doing a bunch of stuff directly in DW::Rename. At some point, I rethought, and encapsulated some of that logic into a new class DW::RenameToken, and I had to do a lot of tweaks to what I had already done to accommodate it.
I'm so *absolutely grateful* that
szabgab did such a job towards making existing tests usable, because that put tests in mind when I first started doing the renames module, and I felt obliged to take the time to wrote a few simple tests.
Now the tests are failing, and in all the ways that point out to me where my old assumptions no longer bear weight under the new/tweaked code. They have paid for themselves many times over.
Now how do we convince others to write more of these things? :-)
I'm so *absolutely grateful* that
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Now the tests are failing, and in all the ways that point out to me where my old assumptions no longer bear weight under the new/tweaked code. They have paid for themselves many times over.
Now how do we convince others to write more of these things? :-)