Android Test Project root directory issue in Eclipse

According to this page , I have to create my test project in the \ tests directory in the project for which the tests are intended. However, when I remove “Use default location” in the “New Android Test Project” wizard and manually set the location to the \ tests directory in the main project, a new directory is created in the main project, which is the name of the test the project with -test is added to the end. and the \ tests directory remains empty.

I am using Eclipse 4.2 Juno and the latest version of the Android SDK as of 9/5/2012, which I believe is v20. I assume this is a problem specific to the Eclipse Juno or Android SDK v20, as this post assumes that it works in both 3.5 and 3.6 Eclipse and Android SDK v14. I also use Windows 7 Ultimate x64 if necessary.

I hope to get either an explanation of why Eclipse creates a directory like the one above, or a workaround to get my test project created in the \ tests directory. If none of them is possible, at least confirm in the comment that you can recreate the problem, so I know that I'm not just incompetent.

+7
source share
1 answer
  • Build Android Test Project as described in question
  • Delete a test project from the workspace
  • Rename the file system directory created as the project root to “tests”
  • Import test project back to workspace

I don’t know why I didn’t think about it before I posted my question, but I hope this helps someone else who also lacks a direct understanding of the obvious, like me.

+9
source

All Articles