Android: how to use a test project in the main project

I want to create a project structure like this in Eclipse and use it with Maven:

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) 

I read about this structure on the Android website. Here is the topic http://developer.android.com/guide/topics/testing/testing_android.html

Can anyone help me?

Thanks!

+3
source share
1 answer

In this case, ant is used, not Maven, but may nevertheless provide some help:

http://www.paulbutcher.com/2010/09/android-library-project-with-tests-step-by-step/

0
source

All Articles