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

Integrate screenshot test library in AOSP #279

Closed tarolechaitanya closed 3 years ago

tarolechaitanya commented 3 years ago

Hi, I am developing an application for AOSP. I would like to do screenshot testing for the same. I am developing system application so it has makefile based structure. However I do not find support for system apps for screenshot library. I would like to integrate screenshot library in AOSP source code.

Can it be possible to integrate and use it ?

  1. Integrate in AOSP
  2. Take screenshots on Makefile/Blueprint based project structure
  3. Configuration of library

Thanks.

xiphirx commented 3 years ago

Its possible, but wont be directly supported by this project. The library just outputs images to a specific directory on the device that the plugin later pulls via adb pull. You would need to perform the adb pull on your own and the verification. You can likely reuse the python scripts in the plugins directory to do this.