CTS (http://source.android.com/compatibility/cts-intro.html) features thousands of tests (literally). I'm sure you will find the examples you are looking for.
On Dec 4, 2:11 am, Doug <beafd...@gmail.com> wrote: > > I think this goes some way to explaining why there are many bad > > practices in the Android examples and the API itself. > > Care to share an example of bad practice from the Android core API? > > > Are we going to start seeing some tests being provided with these > > example apps? > > Sample apps typically exist to demonstrate how to use an API, not how > to use an API and then test it. I've shipped SDKs with sample code > but none with unit tests for the sample app itself, because it just > isn't worthwhile. The consumer can unit test their own stuff if they > want. The sample apps just show how to get work done, not how to > prove that the scaffolding works as intended. > > Do you have a counter example of a sample app for any API that unit > tests itself independently of the APIs that it demos? > > Have you investigated any literature or tutorials on Android unit > testing? > > Doug -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en