I have a multiple module maven project containing both Java and Javascript language. I have only java unit test till now, and generate unit test coverage through jacoco. It is running well but I would like to understand more about the unit test coverage number.
Currently I have 125k java code and 175k javascript code, and the unit test line coverage is 44%. Since I have only java unit test, the coverage should be all contributed by java. When I drill down to the line coverage, SonarQube tells me I have 32k uncovered lines, and the uncovered lines are all java code.
Then I am a little confused: If 44% is only about java coverage, I should have 125k * 56% = 70k uncovered lines of java code; if 44% is for all languages, I should have already cover all my java code because (125k + 175k) * 44% > 125k. So which number should I trust?
Best Regards,
Aucun commentaire:
Enregistrer un commentaire