I have been playing around with Espresso
tests for couple weeks now and I finally decided to start testing Fragments.
Immediately I ran into a problem, how do I get current activity?
My app uses data from login so I can't launch the activity with test rule.
Simply put, is there something similar to getActivity()
when doing espresso tests?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…