-
Notifications
You must be signed in to change notification settings - Fork 24
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
Not all coverage files (*.ec
) included in the JacocoReport when using clearPackageData
#83
Comments
This is indeed something I never tested with this plugin, I have some more important bugs to work on first such as supporting the Android Gradle Plugin version 8.0. But this is on my radar as an improvement. |
*.ec
) included in the JacocoReport when using clearPackageData
So I added a test case to the plugin (locally not pushed yet) that uses Do you remember which version of the plugin you where using? Gradle Managed Devices? Test Orchestration? |
Did some more testing and included Test Orchestrator into the mix, now I can reproduce the issue. I took this configuration as example: https://github.com/android/testing-samples/blob/main/runner/AndroidTestOrchestratorWithTestCoverageSample/app/build.gradle The bad news, this is not something I can fix as it seems to be a bug in the Android tooling itself:
The problem is that the coverage files that this Plugin needs (JaCoCo eventually needs them) are not created or disappear before we can use them. Edit: pushed branch with a test case, that currently fails (but as explained not something that this plugin can fix) |
…t to `true` Turns out this test does not succeed, but this seems to be a bug in the Android Tooling and not something this plugin can solve. See: #83
…t to `true` Turns out this test does not succeed, but this seems to be a bug in the Android Tooling and not something this plugin can solve. See: #83
…t to `true` Turns out this test does not succeed, but this seems to be a bug in the Android Tooling and not something this plugin can solve. See: #83
…t to `true` Turns out this test does not succeed, but this seems to be a bug in the Android Tooling and not something this plugin can solve. See: #83
Our project is setup in a way that outputs seperate
.ec
files per test. I believe this is due to theclearPackageData
option being set to true, which is desired for us since it helps with test indempotence.The issue is that the plugin is only looking for
coverage.ec
files when I need it to be looking for*.ec
files.The issue has been discussed here but I'm making a new issue since I'm not convinced that PR is trying to solve the same thing.
The text was updated successfully, but these errors were encountered: