Tapina ([info]tapina) wrote,
@ 2006-03-27 10:09:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: irritated

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!




Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…