In honor of the Leap Day of February 29th, let me tell a story about an unusual date problem I encountered while unit-testing. One project I worked on had made a small effort at writing unit tests, using Java and jUnit. Unfortunately, the team culture was not to run the test suite frequently while developing. Rather, developers were sort of willing to run their own tests, but let the nightly job run the full suite. When a test would fail, someone would track down and lean on whoever had broken it. Once in a blue moon, a certain couple of Unit tests would fail. This is the story of why they were breaking, why it was hard to duplicate the issue, and how I fixed it once I found it. These tests failed one night in the spring, and again one night in the summer. But next morning, no one could reproduce the failure. So they were chalked up to disturbances in the Force or cosmic rays, one of "those things" that happen "sometimes" and nothing was done.
Musings on Tests, Quality, Tools, Projects and more. By Steve Page