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. ๐
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