Book Image

Mastering Unit Testing Using Mockito and JUnit

By : Sujoy Acharya
Book Image

Mastering Unit Testing Using Mockito and JUnit

By: Sujoy Acharya

Overview of this book

Table of Contents (17 chapters)
Mastering Unit Testing Using Mockito and JUnit
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Exploring Code Coverage

This chapter explains the code coverage, coverage tools, and provides step-by-step guidance to generate a coverage report.

The following topics are covered in this chapter:

  • Code, branch, and line coverage

  • Coverage tools such as Clover, Cobertura, EclEmma, and JaCoCo

  • Measuring coverage using Eclipse plugins

  • Using Ant, Maven, and Gradle to generate reports