Coming up to Speed
Incorporating a new practice like unit testing requires continual vigilance. Even if you enjoy writing unit tests and are good about covering the new code you write, you’ll sometimes face an uphill battle within your team. They might not be as vigilant, and they’re probably producing code at a rate that far outpaces your ability to test it. You might also face a team that insists on tossing all safeguards, tests included, in order to meet a critical deadline.
“Unit testing isn’t free,” says Joe, “We’ve gotta deliver in two weeks. We’re way behind and just need to slam out code.”
Lucia responds to Joe, “The worst possible time to throw away unit tests is while in crunch mode. Squeezing lots of coding into a short time will guarantee ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access