This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any Unit testing framework for Andriod Code ?

 
Sandeep Kumar Jakkaraju
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any Unit testing framework for Andriod Code ?
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any Unit testing framework for Andriod Code ?


Android has JUnit built in, accompanied by a fancy "instrumentation" system to allow you to control activities from test code.
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark L. Murphy wrote:
Is there any Unit testing framework for Andriod Code ?


Android has JUnit built in, accompanied by a fancy "instrumentation" system to allow you to control activities from test code.


Well, yes - it does have JUnit built in. But the documentation on how to use it is lacking. I ran into some initial difficulties figuring out how to instantiate a test bundle so I could test the onCreate() methods. Does your book offer any guidance on unit testing Android activities, or do you know of anywhere that provides adequate documentation?
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your book offer any guidance on unit testing Android activities


The book being given away here does not. My upcoming Advanced Android book will have a chapter on testing, both using the built-in framework and how to test without it. Subscribers already have access to Version 0.6 of the Advanced Android book, though the testing chapter will not be ready for a few more weeks.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!