We started writing unit tests for AMO a few years ago with the best of intentions. As the tests grew we started running into memory/timeout problems that prevented us from running the tests. Other priorities took over and since we couldn’t run the tests we quit writing them. The tests got put on the back burner, became stale, and we’re for the most part forgotten (an all too familiar story for most developers).
Over the past few months we’ve been turning that around. While it’s certainly a team effort, it’s not stretching the truth to say that Jeff Balogh has been the driving force behind making sure our framework can scale and getting our old tests running again. Thanks to his tireless efforts our latest numbers show over 1200 unit tests, 1065 of which are passing.
The number of tests and the continuous monitoring of them is a huge milestone for AMO and Mozilla WebDev.