Company
Date Published
Author
G. Ann Campbell
Word count
588
Language
English
Hacker News points
None

Summary

When a project with no real changes undergoes an upgrade in SonarQube, it may show a significant drop in coverage due to the introduction of Executable Lines, which counts the number of lines that can be executed by unit tests. This metric is now used as the denominator when calculating total coverage, allowing for more accurate results. The impact of this change is most notable when considering projects without any coverage at all or those with no data displayed initially. While not every line of code is executable, using Executable Lines provides a more comprehensive view of coverage, even if it means adjusting configuration settings and potentially re-configuring exclusions. The feature is available in recent versions of SonarQube and its supporting analyzers, including C#, Java, JavaScript, PHP, PL/SQL, Python, Swift, among others, with updates expected for other analyzers as well.