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

Snapshot on multipe devices only saving last screenshot #321

Open
Mittchel opened this issue Sep 29, 2022 · 1 comment
Open

Snapshot on multipe devices only saving last screenshot #321

Mittchel opened this issue Sep 29, 2022 · 1 comment

Comments

@Mittchel
Copy link

Mittchel commented Sep 29, 2022

Expected behaviour

I am trying to run a tablet emulator and phone emulator. I expect two screenshots in my /app/screenshots/debug folder (1 for tablet and 1 for phone)

Actual behaviour

Only getting one screenshot, but the test is executing on both simulators. Seems like the last finishing emulator is the only screenshot thats saved.

Steps to reproduce

./emulator -avd Pixel_C_API_30
./emulator -avd PixelXL_Emulator

./gradlew executeScreenshotTests -Precord

Version of the library

com.karumi:shot:5.14.1
Java 11

@sergio-sastre
Copy link

Shot runs the screenshot tests on all the devices adb finds.

However, Shot also supports to specify the folder where the screenshots are saved.

Moreover, using Android Serial we can decide on which emulators/devices the commands will be executed.

If we put all together, you can get it working as expected on a Mac as described in this tweet.

https://twitter.com/gio_sastre/status/1484201050450055169?s=46&t=0OpCcA9bfgI0DJA__8tsUQ

@pedrovgs Maybe makes sense to add to the README how to get Shot working on multiple devices? I can gladly add a PR for that

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

2 participants