If you know Maven, you can check out: http://code.google.com/p/masa/wiki/GettingStarted
The instrumentation plugin will run the api demo tests. Shane On Mon, Oct 13, 2008 at 5:21 PM, Mark Murphy <[EMAIL PROTECTED]>wrote: > > Andrew Stadler wrote: > > To look under the covers, use this command: $ adb shell pm list > > packages | grep example > > > > And you should see (among other things) both of the packages I > > mentioned. If you don't see both packages, then fix that first (no > > point in launching the instrumentation yet). > > The .tests package is not there, so I'm guessing that's not > pre-installed in the emulator. > > I notice there are no build.xml files in the ApiDemos anywhere. I am > assuming I need to build and install the tests -- will a stock > activitycreator-style build.xml suffice for the ApiDemos tests? > > What is also interesting is, for my attempt at using my own tests, > xyz.test is listed, but not xyz. However, xyz's code is loaded in two > separate APKs (a sample app in the xyz.sample package, plus the xyz.test > test suite), so I know for certain the code is on the emulator. > > What exactly constitutes the "packages" that adb shell pm list packages > lists? It's clearly not Java packages, as the list is missing lots of > stuff. Is it the default namespace for each installed APK? And is that > the "targetPackage" I'm supposed to have in my AndroidManifest.xml file? > > I'm starting to suspect I'm suffering from term overload on "package". > > > Finally, when you have instrumentation launch failure, did you take a > > look at what's happening in adb logcat? > > Yes. I mentioned that in the original email, but here's more detail: > > For the ApiDemos one, DDMS gives me: > > "Unable to find instrumentation info for: > > ComponentInfo{com.example.android.apis.tests/android.test.InstrumentationTestRunner}" > > For my own, DDMS gives me: > > "Unable to find instrumentation target package: xyz" > > Many thanks! > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.3 Published! > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---