-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jacoco coverage report won't reflect latest change #489
Labels
Comments
Thanks for the report! |
shanshin
added a commit
that referenced
this issue
Oct 13, 2023
If the build cache is not used and the build directory is not cleared before the test run, then the coverage data from previous test runs are merged with the data from the recent run. In this case, the report may include coverage from those tests that were removed in the latest version of the code. To solve this, it is necessary to delete the binary report file before each run of the test task. Fixes #489
shanshin
added a commit
that referenced
this issue
Oct 13, 2023
If the build cache is not used and the build directory is not cleared before the test run, then the coverage data from previous test runs are merged with the data from the recent run. In this case, the report may include coverage from those tests that were removed in the latest version of the code. To solve this, it is necessary to delete the binary report file before each run of the test task. Fixes #489
Thanks for the quick update. I tried these two approaches and both won't work.
|
shanshin
added a commit
that referenced
this issue
Oct 13, 2023
If the build cache is not used and the build directory is not cleared before the test run, then the coverage data from previous test runs are merged with the data from the recent run. In this case, the report may include coverage from those tests that were removed in the latest version of the code. To solve this, it is necessary to delete the binary report file before each run of the test task. Fixes #489 PR #490
Fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
Jacoco report was not update correctly after delete one of the tests.
Coverage report still showing object is covered.
Errors
Expected behavior
Coverage report should show object is not covered.
Reproducer
Basic project with two test file.
build.gradle.kts
Target class
Test file 1
Test file 2
Reports
Environment
The text was updated successfully, but these errors were encountered: