I am attempting to integrate https://github.com/Shopify/android-testify to add screenshot testing to my app. I am having trouble, however, with getting the simplest of tests to run due to my app's current integration with Dagger Hilt.
If I try to add only the ScreenshotRule as suggested by Testify's documentation, I get the error:
Caused by: java.lang.IllegalStateException: The component was not created. Check that you have added the HiltAndroidRule.
Additionally, if I use both the standard hilt rule (HiltAndroidRule(this)
) alongside the ScreenshotRule, the tests just fail immediately, including tests that worked before adding the ScreenshotRule.