Skip to content
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

ScreenshotTestSample with Gradle Manged Devices and several shards generates screenshots for last shard only #502

Open
sergio-sastre opened this issue Jan 6, 2024 · 0 comments

Comments

@sergio-sastre
Copy link

If I run
./gradlew nexusOneApi30DebugAndroidTest -Pandroid.experimental.androidTest.numManagedDeviceShards=2

I see the following in the terminal:

Task :app:nexusOneApi30DebugAndroidTest
Starting 4 tests on nexusOneApi30_0
Starting 2 tests on nexusOneApi30_1

And then in the build folder only the screenshots for shard 1 are generated: those from shard 1 are missing:
Screenshot 2024-01-06 at 09 14 51

Remarks:
I've executed the command several times. Sometimes the first shard is assigned 2 tests, and the second 4, sometimes the first is assigned 4 and the second one 2. In both cases, only the screenshots of the second shard are generated in the corresponding folder

Expected:
The screenshots of all shards are generated in the corresponding folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant