unit testing

Clean Code

Clean Code

Bob Martin’s Clean Code: A Handbook of Agile Software Craftsmanship is finally out and the UPS man just dropped a shiny new copy on my doorstep. It kicks off with these fine words of wisdom: The only valid measurement of code quality: WTFs/minute Thought I’d take you with me on my quick skim in case […]

Your Unit Tests Should Mind Their Own Business

Your Unit Tests Should Mind Their Own Business

As the unit testing debates continue on my project, I can’t help but noticing that people are spending all sorts of time pontificating over the right way to unit test, without stepping back to consider what they’re trying to achieve with unit testing. And because they don’t know where they’re going, they’re not able to […]

TDD SmackDown!

TDD SmackDown!

Software development gurus Bob Martin and Jim Coplien go head to head on the virtues (or lack thereof) of Test-Driven Development. And in this corner, we have Robert “Uncle Bob” Martin, who throws the first punch with the bold: “it has become infeasible for a software developer to consider himself professional if he does not […]

My Unit Tests Are Purer Than Yours

My Unit Tests Are Purer Than Yours

There is a hot debate on my project about whether or not our JUnit tests are pure unit tests. What the heck does that mean, pure unit tests? Our tests are JUnit tests. Doesn’t that, by definition, make them unit tests? Actually, no. Unit testing does actually refer to a very specific type of test […]