Closed christopherperry closed 9 years ago
I like the latter.
@edenman I agree. I haven't poked around under the covers on this lib enough yet to know how easy this would be to accomplish, but I could take this on if others think this would be a good addition.
Selectors naturally operate on arrays of objects whereas the assertions are tailored for a single element. I'd wager doing this properly would require a good bit of work.
I know this is an old issue, but if anyone interested, this can be achieved with the great espresso
library.
Espresso operates on top of Android's instrumentation. This library is for unit testing.
Of course, it can also be used in your instrumentation as well.
Yeah, you are right, it cannot be used in simple unit tests. :( But i am a little bit confused about your two comments.
I was just clarifying that this library can be used for both types of tests whereas Espresso can only be used for instrumentation tests.
We have no plans for this. It's a fundamental deviation from the core principles of this library (which is itself merely a platform adapter for another library not offering anything along these lines).
Was just writing a test and really wanted to write something like:
or perhaps
is better design.