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

Sonar Code Quality Testing Essentials
By :

In this chapter, we covered all three methods that the Sonar platform offers to analyze projects such as Maven, Ant, and Java Runners. We configured the Sonar server and its MySQL database to accept remote connections, and installed and configured the Maven and Ant build tools. To test the set up, we downloaded and imported some popular open source libraries into Sonar for Sonar inspection.
With some projects already analyzed, we went through the Sonar web interface from the home page, down to components and project dashboard. We created a custom filter to help us track lack of test coverage across all projects and further customized the dashboard by adding widgets and rearranging the layout. Towards the end of the chapter, we eliminated a couple of violations and triggered a version change event. After a fresh analysis, we browsed to Sonar again to get visual feedback on the aforementioned changes.
In the next chapter, we will focus on coding standards, the rules that enforce them...
Change the font size
Change margin width
Change background colour