pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.18k stars 115 forks source link

Confusion about folder structure when using -PrunInstrumentation=false #315

Closed VleemingM closed 2 years ago

VleemingM commented 2 years ago

Whenever i'm running ./gradlew app:executeScreenshotTests -PrunInstrumentation=false I get the error "We couldn't find any screenshot. Did you configure Shot properly and added your tests to your project?" I couldn't really find any documentation about this option either.

My structure is as follow | app | --- screenshots | ---------------- debug | ----------------------- Nexus6 | ------------------------------- < base screenshots here | ---------------- screenshots-compose-default | ----------------------- < pulled screenshots here

Expected behaviour

Either some documentation about this or more helpful logs

Version of the library

5.14.0

Any help would be appreciated :-)

VleemingM commented 2 years ago

Figured it out you need to put your screenshots right next to your actual screenshots for me that was app/screenshots/debug/nexus6/screenshots-compose-default and running the following script ./gradlew app:debugExecuteScreenshotTests -PrunInstrumentation=false -PdirectorySuffix=Nexus6