Open tripolkaandrey opened 1 year ago
@tripolkaandrey For API 28-33 you need to enable non-SDK interfaces on your emulator via adb: https://github.com/pedrovgs/Shot#using-shot-on-api-28
are you doing that?
@sergio-sastre Thank you for your suggestion. Yes, I did enable it.
@tripolkaandrey Do you have a windows machine? Someone reportes similar error to me in this repo: https://github.com/sergio-sastre/Android-screenshot-testing-playground/issues/20
However, I do run it without any issues. Could you check out if you also get the same error?
@sergio-sastre
Do you have a windows machine?
No, I am using macOS.
I am experiencing the same issue.
Same issue... but in my another project it is working fine... Actually for the first time it worked when recording... Then it is not working.. I'm not sure why
After few hours of debugging, I found the problem...
The reason is that there are spaces in the project folder name or in the project path. Removing the spaces moved the screenshots to the project folder and fixed the error:
🤔 We couldn't find any screenshot. Did you configure Shot properly and added your tests to your project? https://github.com/pedrovgs/Shot/#getting-started
@pedrovgs Please, fix the problem or describe it in the documentation
My build was having minify enabled in the debug build and when i run screenshot tests for the debug build.. the screenshots were not pulled... after disabling minify, it is working find
Preface
I am integrating screenshot testing in my Jetpack Compose application. Despite trying different library versions(5.+) and API levels(26-33), I always have some issues. I decided to pick one "combination" and, therefore, issue in the hope of getting some help—and hopefully, insight into issues with other configurations.
Dependencies
Shot => 5.14.1 Jetpack Compose => 1.3.1 Android Gradle Plugin => 7.3.1
Configuration
Sample
Device
I am launching an emulator with Pixel 6 API 30 via Android Studio.
Command
Output
Behaviour
The emulator seems to be doing the work while running the command. However, afterwards, there are no screenshots on the device and in the local
screenshots
directory.