Overall Code Coverage show in Sonar Portfolio is based on all lines and conditions of all projects?

SonarQube ID information (Hosted)
Version: 8.9.1.44547

Quick question, Overall code coverage for a portfolio is calculated using the same formula as below but considering conditions and lines of all projects together added in Portfolio?

(CT + CF + LC)/(2*B + EL)
Reference of formula (See Coverage Definition) metric definition

For example, I have 2 projects in a portfolio
Project A has coverage of 71.9%
Project B has coverage of 78.3%
Overal Portfolio is showing 72.5%

Hi,

Welcome to the community!

Yes, that should be correct.

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley:

 
HTH,
Ann