-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Sonar Code Quality Testing Essentials
By :

In this chapter, we will discuss how Sonar analyzes our unit tests, evaluating different code coverage criteria. The goal is to have Sonar identify untested code and guide developers as to what tests need to be written to improve the software quality. The platform leverages the functionality of popular Java code coverage engines and analyzes the collected coverage data taking into account other software measures such as complexity. Thus, Sonar enhances the monolithic code coverage analysis, as it adds more layers of information on top of percentile coverage results.
For example, low-complexity statements or blocks of untested code that are rarely executed pose a lesser threat than complex and frequently executed methods. With limited resources, we would probably want to invest time testing and fixing the second crucial part of source code, rather than the first. Sonar helps in disambiguating such cases.
In this chapter we cover:
Measuring code coverage
Code...
Change the font size
Change margin width
Change background colour