• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Is there any Unit testing framework for Andriod Code ?

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any Unit testing framework for Andriod Code ?
 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic