On the developer.android.com website there is a guide to testing android that says:
You can create a test project anywhere in your file system, but the best approach is to add the test project so that its root directory tests/ is at the same level as the src/ directory of the main application's project. This helps you find the tests associated with an application. For example, if your application project's root directory is MyProject, then you should use the following directory structure: MyProject/ AndroidManifest.xml res/ ... (resources for main application) src/ ... (source code for main application) ... tests/ AndroidManifest.xml res/ ... (resources for tests) src/ ... (source code for tests) The link to the website is: http://developer.android.com/guide/topics/testing/testing_android.html So i took this approach and then tried to Run MyProject as an Android JUnit Test. However when i do this the error message i get says: "An instrumentation test runner is not specified!" This would make sense if i didn't have the test manifest file AndroidManifest.xml in the tests/ directory but i do have the file there. What could be the issue? I have been able to create a test project that is separate from the main project and run the test project as an Android JUnit Test, but i don't get how to "add the test project so that its root directory tests/ is at the same level as the src/ directory of the main application's project". Does anyone know whats going on here, or has anyone been successful in getting this to work? Thanks for any help. -- 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