有没有插件可以在没有Java源代码或类的情况下将jacoco-it.exec数据文件(覆盖数据)加载到SonarQube中? [英] Is there a plugin which will load a jacoco-it.exec data file (coverage data) into SonarQube without java source or classes present?

查看:158
本文介绍了有没有插件可以在没有Java源代码或类的情况下将jacoco-it.exec数据文件(覆盖数据)加载到SonarQube中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在阅读许多帖子时,在许多情况下,用户已使用jacoco代理生成覆盖率数据(即,创建了jacoco.exec或jacoco-it.exec的exec数据文件)。但是,关于将数据导入SonarQube有很多问题。在许多这些用例中,在创建exec数据文件时,该文件就已与构建时项目结构解除关联。您可以在没有相关类或源文件的情况下将jacoco exec数据文件加载到SonarQube中吗?如果是,那么您可以指向一些文档或示例。

In reading many posts there are many cases where users have used the jacoco agent to generate coverage data (i.e. created an exec data file either jacoco.exec or jacoco-it.exec). However, there are a number of questions about getting the data into SonarQube. In many of these use cases by the time the exec data file is created it is disassociated from the build time project structure. Can you load a jacoco exec data file into SonarQube without having related class or source files? If yes, could you point to some documentation or example.

推荐答案

SonarQube中的所有内容都基于源代码。如果没有将数据附加到的源代码,则无法读取/加载单元测试覆盖率数据。

Everything in SonarQube is based on the source code. You cannot read/load unit test coverage data without source code to which to attach the data.

编辑

对于完整的Java分析,类文件必须以好。您可以在没有它们的情况下进行分析,但是准确性会降低。

For full Java analysis, the class files must be present as well. You can run analysis without them, but it will be less accurate.

这篇关于有没有插件可以在没有Java源代码或类的情况下将jacoco-it.exec数据文件(覆盖数据)加载到SonarQube中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆