-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support sharding with Gradle managed devices #187
Comments
I'll tag @olegosipenko, since he might have some suggestion for this ;) |
Ha! I didn't even know they supported shards. Sounds like we need to read and respect the |
@DanielJette |
Hi @sergio-sastre These two PRs added the bulk of the GMD support so they might offer some good places to start looking: #177 is the one where I added the support for properly saving the test storage files in a way that was compatible with Testify. So I'd focus on those changes. The key file is Library/src/main/java/dev/testify/output/TestStorageDestination.kt If I had to guess, the issue is with the value returned by TestStorage has this getOutputProperties method ... maybe that has information about where the files are stored when sharded? If you share what you find, I can try to help out with this. |
After further investigating, it looks like the problem is in Gradle Managed Devices itself. I've already reported it: |
Describe the bug
Recording screenshots with andoid-testify and gradle managed devices works fine, unless we use sharding, e.g. using -Pandroid.experimental.androidTest.numManagedDeviceShards=2
In that case, only the sceenshots of one of the emulators is pulled out, for 2 shards it would be half of the expected screenshots
This issue relates to:
To Reproduce
execute it with more than 1 shard, e.g.
./gradlew pixel3api30DebugAndroidTest -Pandroid.experimental.androidTest.numManagedDeviceShards=2
Only the screenshots of one "shard" can be found in the corresponding gradle managed device folder
Expected behavior
The screenshots of all "shards" are in the corresponding gralde managed device folder
Target Android Device (please complete the following information):
Additional context
It works if numManagedDeviceShards=1
The text was updated successfully, but these errors were encountered: