Fixed
Status Update
Comments
ad...@google.com <ad...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
hu...@google.com <hu...@google.com> #3
I haven't tried it yet but yes, I think that what we should do. Can we make changes in androidx.test.internal.runner.listener.CoverageListener and have it write coverage files via the test storage service?
ad...@google.com <ad...@google.com> #4
Yeah, agree that this should be the way to go. I have a few ongoing changes for writing coverage files via the test storage service when it's available.
As we discussed offline, one caveat is that we'll need to make the storage service work on scoped storage on API 30+ for Android Studio.
Description
You have to set coverageFilePath non package private directory when you enable clearPackageData option in order for the coverage file to survive after "pm clear" command. We should consider facilitating android test services' pending intent to delegate saving of the file without WRITE_EXTERNAL_STORAGE permission from the tested application. See b/123987001 for background.