1.2. The value of having tests

Meet Marcus. Marcus is a prominent programming wiz who graduated two years ago and joined the IT group of a local investment bank, where he’s been developing the bank’s online self-service web application. Being the youngest member of the team, he kept a low profile at first and focused his energy on learning about the banking domain and getting to know “the way things are done here.”

A few months on, Marcus started noticing that a lot of the team’s work was rework: fixing programmer mistakes.[1] He started paying attention to the types of mistakes the team was fixing and noticed that most of them would’ve been caught fairly easily by unit tests. Marcus started writing unit tests here and there when he felt that ...

Get Effective Unit Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.