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

Defining metric thresholds and alerts

To further streamline and automate quality inspection, Sonar introduces dynamic threshold alerts by assigning threshold values to specific metrics. Whenever a metric exceeds the configured value or threshold, an alert is raised. Alerted projects are specifically marked both in the projects list and in the dashboard to indicate the threshold violation.

Each quality profile features its own separate set of alerts. Next, we will add two alerts to Rules compliance and Testing Coverage. Click on Configuration, go to the Quality Profiles page, and click on the Packt profile we have already created (if you haven't created it, simply create a new one by clicking on Copy to copy the default profile, named Sonar way ...

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