Chapter 3. Ensuring that your code is doing things right

This chapter covers

  • Knowing how much of your code is doing things right
  • Explaining metrics on a file level
  • Configuring your favorite code-coverage tool
  • Integration testing (IT)

These days, unit testing is a standard practice for many teams. But if you’re among the holdouts, the first part of this chapter should convince you that it’s the right time to get started with unit testing.

Whether you’re just getting started with unit testing or you’re already an experienced test writer, SonarQube can help you track how much of your code is covered by unit tests. And more important, it will help you pinpoint the gaps in your testing, so you can close them. Two types of things can go wrong ...

Get SonarQube in Action 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.