title: Android Test Driven Development
body: <p>I have considerable experience in making Android applications. For my new project, we have decided to do Test Driven Development (TDD). I have been getting my hands wet on Robotium for User Scenario Testing, and it works fine and looks easy too. </p>
  
  <p>For unit testing, I tried to mock Context using (MockContext Android Class) but I am unable to do so. I went through this blog <a href="http://sites.google.com/site/androiddevtesting/" rel="noreferrer">http://sites.google.com/site/androiddevtesting/</a> and through this <a href="http://sdudzin.blogspot.com/2011/01/easy-unit-testing-for-android.html" rel="noreferrer">http://sdudzin.blogspot.com/2011/01/easy-unit-testing-for-android.html</a> , which suggests that mocking in Android apps is still very limited and hard, and have suggested to use PowerMock, jMockit, JeasyTest, or Roboelectric (in combination with Mockito and Maven) and even RoboGuice. </p>
  
  <p>I would like to get any suggestions from you guys on which unit testing framework in your opinion is the best for testing Android applications. (particularly testing Android classes, possibly giving mock Contexts and other mocking features so that I can make my test cases as independent as possible). Any suggestions or pointers would be helpful . Thanks </p>