Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Android Test Project into Eclipse from Version Control

I have an Android Eclipse project and an associated Android Test Eclipse project checked into a subversion repository. Given a checked out working copy, how do I bring the Android Test project into an Eclipse workspace?

It's easy to add the Android project to the workspace (just File->New Project->Android Project->From Existing Source and point it at the directory in the svn working copy). But, the 'New Android Test Project' does not have an option to create from existing source.

like image 777
David B. Avatar asked Sep 15 '10 23:09

David B.


1 Answers

  1. File -> Import...
  2. Existing Android Code into Workspace
  3. Import the project as you would with a regular Android project
  4. You'll have errors becase the imported test project does not have references to the parent project
  5. Right Click test project -> Properties
  6. Java Build Path -> Projects tab
  7. Add -> Choose the project that you're testing
  8. Ok
  9. Refresh / Clean (optional)
  10. Right Click test project -> Run As -> Android JUnit Test
like image 64
Paul Avatar answered Oct 13 '22 17:10

Paul