2005-10-21 Oddmuse

I fixed the Oddmuse:Local Names Extension today after noticing that it did not work on my site. I noticed that something was not right. Then I wrote two simple test cases which worked, wrote some more, and when they failed, I fixed the code to get the working again. Automated testing rules! While it is often difficult for me to do for new code, it works very well for many bugs Iโ€™m discovering later. ๐Ÿ˜„

Oddmuse:Local Names Extension

I havenโ€™t found a way to write mod_perl tests that donโ€™t involve an entire web server setup and assumptions about URLs etc. ๐Ÿ™

At first I had tried to isolate the local names bug on my local mod_perl instance. This proved to be very difficult. Resetting the code was also difficult. So there were bugs in the code, old code not being updated on the server, etc. It was very tricky to work with. When it all worked in an ordinary CGI environment again, and I did some testing involving the creation of new files using the mod_perl instance, everything started working again. I think having both the CGI version and the mod_perl version use the same database is a *bad* idea. ๐Ÿ˜„

โ€‹#Oddmuse