microsoft / microsoft/vscode-java-test
Code coverage: execution count not correct
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 340
- Forks
- 173
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 18
Description
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:
I believe it is displaying the instruction count for line 41 found in the Jacoco report:
In any case, it would be great to have the option to turn off these decorations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100