java - 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!
解决方案
推荐阅读
- laravel - auth()->user() 在功能测试时在 ServiceProvider 中返回 null
- javascript - 在 jQuery 中创建的元素不会触发侦听器
- android - EmojiCompat 动态列出表情符号
- swift - 当我在 swiftUI 中打开 TabView 的视图时,onReceive 不执行
- regex - 除了在 perl 中将每个单词放在单独的行上之外,尝试输入格式化的文本文件并删除所有空格
- sql - 查询具有 30 秒时间窗口的运行平均值,向前移动 5 秒
- javascript - 尽管更改了数据库规则,但将文件上传到 Firebase 存储仍会返回 403 错误
- c++ - AddressSanitizer: SEGV on unknown address 0x000000000000 是什么意思?
- c# - 执行 Couchbase IQueryable 后如何应用 OData $select
- excel - 有时会在代码中收到运行时错误,该代码将范围从 excel 工作表复制到 powerpoint