8

How to setup Eclipse to run a login Junit test before each test for Android testing?

view full story
linux-howto

http://stackoverflow.com – I have hundreds Android jUnit tests. When I debug a test, it becomes very annoying as our Android app requires login. I do have a test called AuthenticationTest to login which is always the first test case to run if I run the entire suite. After that test passes, it will leave the application with a user signed in and the rest tests can continue to run. When I do debugging, I want to find a way to allow me to run AuthenticationTest first, and then run the test I want to debug only on Eclipse. I do not want to call the login method inside of each test case as it will make our testing not eff (HowTos)