OK, I ran into something like this before getting things from Git and I remembered...
For some reason, sometimes they seem to get their Is Library boolean set. So I selected the Prefs project, then hit the Project button on the tool bar, then went into Preferences, then unchecked the Is Library on the bottom right. Once I did that, I was able to ATTEMPT to run the tests at least but got the following error: Prefs does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner in its AndroidManifest.xml Looking at your manifest though I could not see this to be true about the manifest file: <instrumentation android:name="android.test.InstrumentationTestRunner" android:targetPackage="com.commonsware.cwac.prefs.test"/> So, it is still the InstrumenttationTestRunner that is the problem, and it is still empty. Is yours filled out? However that gets set is the key to the issue I think. On Monday, December 10, 2012 2:21:38 PM UTC-6, darrinps wrote: > > There must be something that doesn't get saved correctly or something in > git with the zip. > > When I tried doing what you said (select tests, hit Run on toolbar, then > select Run) I get this: > > [2012-12-10 14:15:28 - Prefs] Android Launch! > [2012-12-10 14:15:28 - Prefs] adb is running normally. > [2012-12-10 14:15:28 - Prefs] Could not find Prefs.apk! > > I then tried to delete the Android JUnit configuration for Prefs thinking > that would get me back to ground zero like when you specified the project > type the first time you ran it. Doing that only caused this error though: > > An internal error occurred during: "Launching New_configuration". > Path for project must have only one segment. > > > I have the very latest of everything installed as of Friday so maybe they > introduced a bug into Eclipse with the new changes. That's all I can think > of at the moment as I have tried everything I can find to get this to work. > > > > On Monday, December 10, 2012 2:00:53 PM UTC-6, Mark Murphy (a Commons Guy) > wrote: >> >> On Mon, Dec 10, 2012 at 2:45 PM, darrinps <darr...@gmail.com> wrote: >> > So, just how are you running your JUnit tests? >> >> Select the test project and press the Run button in the toolbar. The >> first time I ran the tests/ project ac, it asked me for the project >> type, and I chose Android JUnit test. Results show up in the JUnit >> view. Done. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to Android Development_ Version 4.4 Available! >> > -- 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