Blog

  • Home /
  • Blog /
  • Book Launch: Writing Maintainable Unit Tests

Book Launch: Writing Maintainable Unit Tests

February 17, 2021

I’m very happy to announce that I’ve finished writing my first book Writing Maintainable Unit Tests. What an amazing journey it has been. I would never have thought that I would be able to write a book. Well now, here we are.

Book cover of 'Writing Maintainable Unit Tests'

The ebook has been published on LeanPub, which is available in PDF, EPUB and MOBI formats. There are six chapters:

  • Chapter 1 provides an overview of the different kinds of automated tests and how to apply a healthy mix in a code base. It also touches on the different flavours of Test-Driven Development.
  • Chapter 2 describes the characteristics and principles that make tests maintainable. It touches on a number of design principles like DRY, DAMP and the Single-Responsibility Principle.
  • Chapter 3 discusses the anatomy of automated tests and how a good structure is essential to keep them readable for our fellow software developers.
  • Chapter 4 demonstrates a number of patterns and techniques to keep tests decoupled from the production code. This is the longest chapter of the book.
  • Chapter 5 shows a number of patterns and techniques for writing clear assertions and observations.
  • Chapter 6 touches on some miscellaneous principles that are useful for writing maintainable and readable tests.

For more information, you can have a look at the full table of contents.

I’ve learned a lot over these past couple of years. It’s my hope that others can learn something as well from reading this book. As always, any and all feedback is very much appreciated.

If you and your team want to learn more about how to write maintainable unit tests and get the most out of TDD practices, make sure to have look at our trainings and workshops or check out the books section. Feel free to reach out at infonull@nullprincipal-itnull.be.

Profile picture of Jan Van Ryswyck

Jan Van Ryswyck

Thank you for visiting my blog. I’m a professional software developer since Y2K. A blogger since Y2K+5. Provider of training and coaching in XP practices. Curator of the Awesome Talks list. Past organizer of the European Virtual ALT.NET meetings. Thinking and learning about all kinds of technologies since forever.

Comments

About

Thank you for visiting my website. I’m a professional software developer since Y2K. A blogger since Y2K+5. Author of Writing Maintainable Unit Tests. Provider of training and coaching in XP practices. Curator of the Awesome Talks list. Thinking and learning about all kinds of technologies since forever.

Contact information

(+32) 496 38 00 82

infonull@nullprincipal-itnull.be