bazelbuild / bazelbuild/rules_java

Coverge support breaks when test has its own dependency on `org.jacoco.*`

オープン
#202 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
P3
主要言語
Starlark
スター
103
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

As a coverage tool, it is highly unlikely that a library will include a genuine dependency on `org.jacoco.*`. However;

- There are no safeguards in place. If this does happen, `bazel coverage` may just not work. Ideally what I suspect to be a technical limitation would be reported on at compile time.
- Sometimes third party packages include test dependencies as compile dependencies by mistake. e.g. https://github.com/aliyun/aliyun-openapi-java-sdk/pull/930

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing `bazel coverage` with a test or library that has an `org.jacoco.*` dependency, including the third-party dependency case described in the issue. Trace where the dependency is handled during compilation; done means the technical limitation is reported at compile time instead of coverage support silently breaking.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
build-system, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。