Code coverage: execution count not correct

Open
#1,698 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, typescript, vscode
Domain
testing

Research direction

Reproduce the issue by running code coverage on a Java project and showing inline coverage in the editor. Compare the execution count displayed by the decoration with the instruction count in the JaCoCo report; done when the displayed count is correct or the decorations can be disabled.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 2h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-java-test

All issues in microsoft/vscode-java-test

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.