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

Run screenshot tests without Instrumentation Tests #239

Closed donchakkappan closed 4 years ago

donchakkappan commented 4 years ago

Is there any way to run screenshots without Instrumentation Tests , so that I can run screenshot tests with an APK and adb shell commands

xiphirx commented 4 years ago

Not sure what you mean, but you could always use the am instrument command to invoke the tests from adb.

donchakkappan commented 4 years ago

@xiphirx Thanks for your quick reply.I want to setup screenshot-tests independent of Native/Hybrid App development. If I just have of an APK or 2 sets of screenshots , can I setup screenshot-tests.

xiphirx commented 4 years ago

I mean you're free to setup your project however you like, theres nothing in the framework that will limit you. The only thing is that these tests rely on an Android environment, so you will need to run them as an instrumentation test.