airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.46k stars 730 forks source link

Epoxy Unit Testing - where can I access expectState ? #1293

Closed martymiller closed 2 years ago

martymiller commented 2 years ago

This article references a method called expectState and is written by an Airbnb Android developer. It's almost like this method doesn't actually exist because I don't see it in the SDK and there is no documentation. This method is exactly what I'm looking for. Please point me in the right direction! Thanks.

https://medium.com/airbnb-engineering/better-android-testing-at-airbnb-part-4-testing-viewmodels-550d929126c8

elihart commented 2 years ago

That article is about a different repo - https://github.com/airbnb/mavericks

Also, we have not open sourced the unit testing library that the article describes

martymiller commented 2 years ago

Then why did you put it in an article if it can't be used?

elihart commented 2 years ago

That article isn't trying to be exact documentation or representation of an open source library, it's a review of our testing methodology at airbnb, some of which is open sourced.