Android Test Project Directory Structure When Using Eclipse -


once upon time, avoided eclipse android development. , life good.

along way, adopted convention supported android command-line build tools, of having tests/ subdirectory containing test code (e.g., myproject/ being home of app, myproject/tests/ being home of test suite). android excellent job of allowing test code reside in separate-but-related project, , having subdirectory kept tests logically co-located project proper.

i switching eclipse, need support better subscribers. way me quality job of supporting use daily. and, since have quad-core 4gb of ram, eclipse starts in less minute. :-)

however, preliminary research suggests eclipse not support sub-projects (i.e., 1 eclipse project having eclipse project in subdirectory).

so, questions are:

  1. am correct in assessment, , if i'm wrong, there particular steps should take ensure eclipse happy? find eclipse can wee bit cranky...

  2. how android developers organizing test projects relative project being tested? peer directories (e.g., myproject/ app, myprojecttests/ tests)? peer subdirectories under targeted common top (e.g., myproject/app/ android app, myproject/tests/ test suite?)? else?

btw, i'm running eclipse 3.5.2, if matters.

thanks!

i've been creating test projects eclipse 3.6.2 inside main project describe command line tools (myproject , myproject/test android projects both contain src folder). can create test project using new android test project deselecting "default location" , setting path.

none of projects large, problem i've had far cannot use myproject/test folder under myproject project. able right click , run test case, have access files directly myprojecttest project. prevent having problems, can add resource filter hide test folder in project properties > resource > resource filters.

however, preliminary research suggests eclipse not support sub-projects (i.e., 1 eclipse project having eclipse project in subdirectory).

what problems have seen?


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -