Thanks for your reply. I read through the document
For my case for line coverage
(132 visited out of 136 total) = 97.05%
And for Branch coverage
(16 branch out of 18 branch ) covered = 88.88%
numSequencePoints=“136” visitedSequencePoints=“132” numBranchPoints=“18” visitedBranchPoints=“16”
In the coverage report we only have visitedBranchPoints and not CT,CF(conditions that have been evaluated to ‘true’/‘false’ at least once). Then how can I use this formula
I also read the document on “Why did my coverage just drop?” and understood that how sonarscan not only focuses on line coverage but a new metrics called as Executable Lines
I think I got it now. The unittestcoverage workflow is running on all lines of code and then providing the line and branch coverage. While the sonarscan runs only on the modified code and then it calculates the coverage using the above mentioned formula
I check my code changes and the lines changes was aprox. 15. Then I believe that the coverage % what we are getting from sonarqube dashboard is just for the new committed code