Screenshots are pulled from the wrong directory
JoseAlcerreca opened this issue · 1 comments
JoseAlcerreca commented
adb: error: failed to stat remote object '/storage/emulated/0/screenshots/com.google.samples.apps.nowinandroid.feature.topic/.': No such file or directory
Looking at the device file explorer, the screenshots are there but in a different directory:
/storage/emulated/0/screenshots/com.google.samples.apps.nowinandroid.feature.topic.test/MatchesActivityScreenshot.png
rharter commented
I've found this to be an issue with library vs. application modules. When Instrumentation tests a library project, the targetContext
is actually the instrumentation context, complete with the $packageName.test
suffix, since the library doesn't have an APK. This should be fixed as part of a larger commit (which included a sample app, and tests to come), here.