Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this book

About the author

About the cover illustration

1. The bigger picture

Chapter 1. The goal of unit testing

1.1. The current state of unit testing

1.2. The goal of unit testing

1.2.1. What makes a good or bad test?

1.3. Using coverage metrics to measure test suite quality

1.3.1. Understanding the code coverage metric

1.3.2. Understanding the branch coverage metric

1.3.3. Problems with coverage metrics

1.3.4. Aiming at a particular coverage number

1.4. What makes a successful test suite?

1.4.1. It’s integrated into the development cycle

1.4.2. It targets only the most important parts of your code base

1.4.3. It provides maximum value with minimum maintenance costs

1.5. What you will learn in this book

Summary

Chapter 2. What is a unit test?

2.1. The definition of “unit test”

2.1.1. The isolation issue: The London take

2.1.2. The isolation issue: The classical take