Are you using Eclipse Indigo? I tried doing that and the thing griped that it could find the test runner and no matter what I did it just wasn't happy.
What I did was: 1) Create a project (an old one I want to add JUnit tests to actually) 2) Create a test project based on that 3) Created a sub directory inside of the main project called tests at the same level as the src, res, etc. directories. 4) Moved the files inside of the test project to that sub directory under the main project. 5) Right clicked on the test directory and selected Run which brought up a dialog to add the run type. 6) Selected Android JUnit tests 7) Saw an empty runnable drop down with no way to select anything. 8) Scoured the Internet for a fix 9) Tried to implement the suggestions (which didn't even seem to fit the situation but tried anyway) 10) Banged head against wall On Monday, December 10, 2012 10:32:24 AM UTC-6, Mark Murphy (a Commons Guy) wrote: > > On Mon, Dec 10, 2012 at 11:14 AM, darrinps <[email protected]<javascript:>> > wrote: > > Using Eclipse Indigo, > > there doesn't seem to any way to store the tests inside of the > application > > itself (I even tried to do it manually then ran into problems running > the > > tests) so is everyone just creating a separate test project outside of > their > > application? > > I create a tests/ project within my main project, such as: > > https://github.com/commonsguy/cwac-prefs > https://github.com/commonsguy/cw-omnibus/tree/master/Testing/JUnit > > -- > 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 [email protected] 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

