Issue
I have some very granular test methods and it would be a total waste of time to start the Activity under test each time. For this it would be very handy to just start it once. Unfortunately Espresso/JUnit finishes all Activities after each test method. Is there a simple way around this?
Solution
There is no way to do that. Espresso test cases start activity for test. Espresso is designed like that.
If you want to test specific scenarios you can have separate methods which you can used it in different tests.
For more info : Why does Espresso leave the app after the test has finished? How to stop it from doing that
Answered By - Jitesh Mohite
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.