Log in

No account? Create an account
27 March 2006 @ 10:09 am
Pointless Unit Testing  
I think everyone knows that unit testing is important, but sometimes it’s done in a pretty brain dead way. Someone on our application thought it was important to write a test for a couple of XSLT stylesheets, to make sure that they did the right thing. They used XMLUnit and everything.

But they copied the stylesheets from the main source folder into the test sources folder. Doh! That means the test is not testing the same stylesheet we use for the real system, which defeats the whole point of having automated unit tests to defeat regression. Always remember to actually test the system under test, not your test system!
Current Mood: irritatedirritated