首页 > 解决方案 > Sonar-Jacoco report hiding code coverage in list view

问题描述

Since I don't have any error, can't find a way to reproduce and show the "error".

I'm on simple maven java war project with arquillian-extension-jacoco to evaluate coverage.

My project builds and deploys without problems (I got 1 blame and some encoding issue but are all warnings).

Now, the report at the end of the build is ok since I can clearly see coverage percentage I expect.

Since I'm running sonar:sonar plugin agains latest sonarqube dockerized image, the even partially covered classes won't show in the "Code" tab about "Overall Coverage" percentage in List mode view.

Now IF I change Code view from "List" to "Tree", and navigate via package directories, I can find the classes which are clearly showing covered and uncovered lines.

So this is really strage.

I've also tried to keep track on an uncovered "0% DummyDto" showed in the "Overall Coverage" list. After implemented a silly Junit to justify just few lines of coverage, even DummyDto disappeared from the subsequent sonar scan cycle.

I don't have any eclusion rule, can't find the right options since I suppose that is caused by some sort of flag somewhere.

If someone could point me to the right direction I could do some more research!

标签: javasonarqubejboss-arquillian

解决方案


推荐阅读