Shopify / android-testify

Add screenshots to your Android tests
https://testify.dev
MIT License
231 stars 23 forks source link

Update docs/sample to include how to run in non-app modules (e.g. Android library module) #272

Closed ryansama closed 2 years ago

ryansama commented 2 years ago

Is your feature request related to a problem? Please describe. I'd like to know how to get the tests working in a non-app module such as an Android library module. Would be fantastic if the docs mentioned how to do this, and even better some sample code to demonstrate it.

This feedback relates to:

Describe the solution you'd like As mentioned above.

Describe alternatives you've considered N/A

Additional context N/A

DanielJette commented 2 years ago

Hi @ryansama Thanks for the feedback! I have plans to create full documentation on how to use Testify with an Android Library module project. Those documents aren't quite ready yet, but I do have a work-in-progress branch where I had added a library module to the Sample app. I just opened that as a draft that you can take a look at here https://github.com/Shopify/android-testify/pull/273

Most likely, you'll want to look at the gradle configuration here:

https://github.com/Shopify/android-testify/pull/273/files#diff-7be9b607348050f71804f7ca41acb93b9b6434014f095c19f3264d2127b87c14R53-R56

ryansama commented 2 years ago

That seemed to work very well, it wasn't too clear what exactly I should name the application/package, thank you!

DanielJette commented 2 years ago

Moved to https://github.com/ndtp/android-testify/issues/90