pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.19k stars 116 forks source link

One set of screenshots recorded when running multiple emulators #284

Closed karsie closed 2 years ago

karsie commented 2 years ago

When running multiple emulators to record screenshots on different sizes and API versions, previously for all devices the screenshots were downloaded (when unique filenames were used). Since 5.12.2 only the screenshots of the last device (highest emulator id) are successfully recorded.

Expected behaviour

All screenshots of all emulators to be recorded

Actual behaviour

Only screenshots of "last" emulator is recorded

Steps to reproduce

start emulator-5554 api30 start emulator-5556 api28 start emulator-5558 api26

./gradlew executeScreenshotTests -Precord

Version of the library

AGP 7.0.3 Shot 5.12.2 (worked perfectly on 5.12.1, also broken on 5.13.0 with or without facebook 0.14.0) Facebook 0.13.0

TomSenier commented 2 years ago

We have noticed the exact same issue when we upgraded from 5.11.2 to 5.13.0