Closed dishmaker closed 3 months ago
Seems like this part of the code should be improved:
For example, expand the classpath when it's a project/container, and persist all output -> source root relationships for those new discovered source kind entry.
Should be fixed by https://github.com/microsoft/vscode-java-test/pull/1639/commits/99faaae53233a453ecc000cc3946c61f66171f02
I'll schedule a pre-release sooner.
0.40.2024040105
is released which fixes this issue.
Works fine. Thanks!
Coverage from jacoco for imported source is not being show in UI. Only the project with unit tests is annotated with coverage percentage. Dependency coverage is ignored in the UI.
Environment:
v0.25.2023121402
Step to Reproduce: Set up an eclipse
.project
and.classpath
with another project inside../proj/src
(MainProject is here)./proj/test/src
(MyProject_Tests is here)Inside (tests) project should contain
.classpath
with classpathentrysrc
=/MainProject
.Run JUnit test coverage in a project
MyProject_Tests
which importsMainProject
with: Ctrl+Shift+P:Test: Run All Tests with Coverage
Expected Behavior: Coverage generated for
MyProject_Tests
andMainProject
too.Actual Behavior: Only
MyProject_Tests
coverage is shown in Explorer and Testing tab.Note:
jacoco.exec
is generated with subproject class paths. However, VSCode shows coverage only for the_Tests
project.