facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Found 0 Screenshots #301

Closed eliddell1 closed 2 years ago

eliddell1 commented 2 years ago

I have just set up a single screenshot test and am getting the following out put when running:

./gradlew runDebugAndroidTestScreenshotTest

output:

> Task :app:runDebugAndroidTestScreenshotTest
[-m, android_screenshot_tests.pull_screenshots, --apk, /Users/erilidde/PostGerritWorkspace/BrickCityDesign/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk, --test-run-id, 4293ccf9-4bf1-46b4-a340-53e2b7153a6d, --temp-dir, /Users/erilidde/PostGerritWorkspace/BrickCityDesign/app/build/screenshotsDebugAndroidTest, --multiple-devices, true]
ls: /sdcard/screenshots/com.example.brickcitydesign.test/screenshots-default/metadata.json: No such file or directory
ls: /data/data/com.example.brickcitydesign.test/app_screenshots-default/metadata.json: Permission denied
ls: /sdcard/screenshots/com.example.brickcitydesign.test/screenshots-default/4293ccf9-4bf1-46b4-a340-53e2b7153a6d: No such file or directory

Found 0 screenshots
Open the following url in a browser to view the results: 
  file:///Users/erilidde/PostGerritWorkspace/BrickCityDesign/app/build/screenshotsDebugAndroidTest/index.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 20s
85 actionable tasks: 13 executed, 72 up-to-date

my manifest has both read and write external storage permissions and i have tried both nor and requestLegacyExternalStorage=true