Is there any Unit testing framework for Andriod Code ?
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Is there any Unit testing framework for Andriod Code ? 

posted 16 years ago
Android has JUnit built in, accompanied by a fancy "instrumentation" system to allow you to control activities from test code.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
posted 16 years ago
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?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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?
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Mark L. Murphy
Author
Posts: 131
posted 16 years ago
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.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
| And then we all jump out and yell "surprise! we got you this tiny ad!" Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |






