Feature Request P3
Status Update
Comments
ad...@google.com <ad...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
ju...@gmail.com <ju...@gmail.com> #3
Well, maybe I didn't express myself properly, I don't want direct access to the views, I want a generated class that would make available espresso matchers. if I had an EspressoBinding class, I could do something like
val binding = MyViewBinding.from(R.layout.my_view)
binding.my_title.check(matches(isDisplayed()))
internally, it would have something like
object MyViewBinding {
val my_title = onView(withId(R.id.my_title))
}
maybe with some extension functions (provided by another package) we could have assertions like
val binding = MyViewBinding.from(R.layout.my_view)
binding.my_title.assertIsDisplayed()
ae...@google.com <ae...@google.com> #4
This bug has not been updated in the last year. Please reopen if we still need to look into this.
Description
Would it be possible?
Thanks