O'Reilly logo

Sonar Code Quality Testing Essentials by Charalampos Arapidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we discussed what code coverage is and reviewed the tools that Sonar uses to perform such an analysis. After a more detailed look at specific coverage metrics such as decision, condition, and path coverage, we examined the Sonar interface and how it helps us identify complex classes lacking tests. Finally, we covered basic concepts of the jUnit testing library as a first step towards unit test writing.

In the next chapter, we will review the process of creating an integrated development environment complete with a source code repository, a build server, and Sonar according to the continuous inspection paradigm.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required