Hi Team,

We are trying to understand how the "*Coverage on new code*" is calculated 
in the SonarQube along with Jacoco.

I have raised an issue earlier in the Jacoco Github 
<https://github.com/jacoco/jacoco>: 
https://github.com/jacoco/jacoco/issues/935 but didn't get much then "
marchof <https://github.com/marchof>" asked me to explore more from the 
SonarQube side.

I then raised a question on https://community.sonarsource.com: 
https://community.sonarsource.com/t/code-coverage-for-the-current-build-versus-the-build-triggered-previous-minus-last-build/14047/10

*In order to calculate the "Coverage on new code".*


   1. SonarQube does an SCM diff.
   2. Then it filters the non-executable lines, concept: Executable Lin 
   <https://docs.sonarqube.org/latest/extend/executable-lines/>es
   3. Then it calculates the line covered/ actual coverable lines.


I am interested to know where is this logic written for flagging the code 
lines as "Executable/Non-Executable Line" is it in 
https://github.com/SonarSource/sonar-java.

Also, is it written by "Jacoco Devs" or by the "SonarQube Devs"?

I want to bring that logic out of "SonarQube" and use it in some of my use 
cases along with Jacoco.

Thanks,
Shubham


-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/911523e3-43f7-4d39-a87a-9ca5affaea20%40googlegroups.com.

Reply via email to