无法从IntelliJ测试覆盖率报告中排除包

huangapple 未分类评论78阅读模式
英文:

Cannot exclude packages from IntelliJ test coverage report

问题

我已经明确设置了我想要包含在代码覆盖率报告中的软件包,并且还设置了我想要忽略的软件包。此外,为了获得最准确的结果,我将其设置为跟踪而不是采样:

然后我运行“分析 -> 生成覆盖率报告”。片刻之后,报告会在浏览器中打开。然而,报告中仍然显示了被排除的软件包。

我做错了什么?如何强制排除不需要的软件包?

IDE 信息:Android Studio 3.5.2

项目结构如下:

我想排除 opencv 下的所有内容。

这是一个旧项目,我不太清楚是如何添加 OpenCV 的。在查找引用时,我找到了以下内容:

  • settings.gradle 包含 include ':app', ':opencv'
  • build.gradle 包含以下内容:
dependencies {
    ..
    implementation project(':opencv')

OpenCV 被作为一个独立的 Android 项目添加,具有自己的 AndroidManifest.xml。

英文:

I have explicitly set the packages I want included in the code coverage report and also set the ones I want to be ignored. Also, to get the most accurate results, I have set it to Tracing instead of Sampling:

无法从IntelliJ测试覆盖率报告中排除包

Then I run "Analyze -> Generate coverage report". In a few moments, the report gets opened in the browser. However, I see the excluded packages in the report.

What am I doing wrong? How do I force the undesired packages to be excluded?

IDE information: Android Studio 3.5.2

The project structure is organized as follows:

无法从IntelliJ测试覆盖率报告中排除包

I would like to exclude everything under opencv.

This is a legacy project and I don't exactly know, how OpenCV was added. Here's what I found when looking for references:

  • settings.gradle has include ':app', ':opencv'
  • build.gradle has the following:
dependencies {
    ..
    implementation project(':opencv')

OpenCV is added as a separate Android project with its own AndroidManifest.xml.

huangapple
  • 本文由 发表于 2020年8月14日 17:41:03
  • 转载请务必保留本文链接:https://java.coder-hub.com/63410368.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定