expo / config-plugins

Out-of-tree Expo config plugins for packages that haven't adopted the config plugin system yet.
427 stars 91 forks source link

feat(detox): Add optional Test Butler setup #147

Open mhmiles opened 1 year ago

mhmiles commented 1 year ago

Why

I wanted to enable Test Butler with Detox on Android. This requires modification of some of the same files/lines as @config-plugins/detox so I was not able to develop the change as a separate package.

How

Added new option to @config-plugins/detox: includeTestButler

Setting this option to true will include the test library in app/build.gradle and make the necessary modifications to the test runner to engage Test Butler.

Test Plan

I have tested this locally by building and using it within my own app. Testing requires utilizing this change with includeTestButler set to true and downloading the Test Butler APK:

curl -f -o ./test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk

and installing it with Detox.