Observations on Code Coverage Tools and Unit Tests

Thursday, January 15, 2009

At my current client, there’s a drive to put more unit tests on the Java code. It’s been a long hard process as few of the developers do strict, or even just “mostly,” test-driven development. As an attempt to try and drive this home, they’ve also tried to implement code coverage (specifically EMMA) to try to encourage test coverage. Unfortunately this doesn’t improve the quality of the tests, or even make the coverage meaningful.

Fire Up VMWare

Monday, January 12, 2009

A Slashdot story pointed out the Windows 7 Beta release was made public, so I downloaded the DVD image, made up a quick VMWare image, and installed the new Windows for play.

Equals and HashCode

Friday, January 9, 2009

It happens far too often that developers shortcut creating equals() and hashCode() in their objects. This discussion hopes to enlighten those short-cutters, and introduce a simple solution to their problem.