4 Tasty testing

This chapter covers

  • Why we hate testing and how we can love it
  • How to make testing more enjoyable
  • Avoiding TDD, BDD, and other three-letter acronyms
  • Deciding what to test
  • Doing less work using tests
  • Making tests spark joy

Many software developers would liken testing to writing a book: it’s tedious, nobody likes doing it, and it rarely pays off. Compared to coding, testing is considered a second-class activity, not doing the real work. Testers are subjected to a preconception that they have it too easy.

The reason for the dislike of testing is that we developers see it as disconnected from building software. From a programmer’s perspective, building software is all about writing code, whereas from a manager’s vantage point, it’s ...

Get Street Coder now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.