Code coverage: execution count not correct

オープン
#1,698 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

Java プロジェクトでコードカバレッジを実行し、エディターにインラインカバレッジを表示して、問題を再現します。デコレーションに表示される実行回数と JaCoCo レポートの命令数を比較します。表示される回数が正しいか、デコレーションを無効にできれば完了です。

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

説明

ai-triaged bug needs-reproduction test-reporting ui

Version: 1.90.0 (Universal)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:34:44.157Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin x64 23.5.0
Test Runner for Java v0.41.1

Steps to reproduce:

  • Run code coverage tool on Java project.
  • Show inline coverage in editor window.
  • The execution count shown alongside each statement is not correct.

Example: hovering over the "6x" decoration on line 41, the pop-up indicates the statement was executed 6 times:
Screenshot 2024-06-12 at 12 31 47 PM

I believe it is displaying the instruction count for line 41 found in the Jacoco report:
Screenshot 2024-06-11 at 5 28 20 PM

In any case, it would be great to have the option to turn off these decorations.

主要言語
TypeScript
スター
340
フォーク
173
平均マージ
1日 19時間
マージ済み PR(30日)
18

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-java-test のほかの issue

microsoft/vscode-java-test の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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