title: How do I configure android tests directory?
body: <p>The Android gradle build forces my AndroidTests to be in src/androidTests. How do I change this to be another directory of my choosing?</p>
  
  <p>Here is some background:
  I am migrating a project from eclipse.</p>
  
  <p>According to the build documentation, when I add this to my gradle build file:</p>
  
  <pre><code>androidTest.setRoot('tests')
  </code></pre>
  
  <p>The android gradle build does this:
  "Note: setRoot() moves the whole sourceSet (and its sub folders) to a new folder. This moves src/androidTest/* to tests/*"</p>
  
  <p>That is great for the build and makes it run just fine.</p>
  
  <p>However, it forces my project structure to put my androidTests within: src/AndroidTest. This makes Eclipse unable to compile because it thinks all the test code should be in a package called androidTests.com.etc.etc.etc...</p>
  
  <p>I'd like to set some property like this:</p>
  
  <blockquote>
  <pre><code>androidTest
  {
      java.srcDirs = ['tests']
  }
  </code></pre>
  </blockquote>