Everyone knows they're valuable, but writing unit tests for web applications can be a major pain in the butt. Few developers truly understand the many facets of unit testing, and choosing the right tools can be problematic in itself.