Skip to Content
Unit Testing Principles, Practices, and Patterns
book

Unit Testing Principles, Practices, and Patterns

by Vladimir Khorikov
January 2020
Intermediate to advanced
304 pages
9h 8m
English
Manning Publications
Content preview from Unit Testing Principles, Practices, and Patterns

Chapter 1. The goal of unit testing

This chapter covers

  • The state of unit testing
  • The goal of unit testing
  • Consequences of having a bad test suite
  • Using coverage metrics to measure test suite quality
  • Attributes of a successful test suite

Learning unit testing doesn’t stop at mastering the technical bits of it, such as your favorite test framework, mocking library, and so on. There’s much more to unit testing than the act of writing tests. You always have to strive to achieve the best return on the time you invest in unit testing, minimizing the effort you put into tests and maximizing the benefits they provide. Achieving both things isn’t an easy task.

It’s fascinating to watch projects that have achieved this balance: they grow effortlessly, ...

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.
Start your free trial

You might also like

Unit Testing Principles, Practices, and Patterns

Unit Testing Principles, Practices, and Patterns

Vladimir Khorikov
Design Patterns: Elements of Reusable Object-Oriented Software

Design Patterns: Elements of Reusable Object-Oriented Software

Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides

Publisher Resources

ISBN: 9781617296277Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link