title: How to cleanly separate two instances of the Test task in a Gradle build
body: <p>Following on from <a href="https://stackoverflow.com/questions/12638514/why-do-my-gradle-tests-run-repeatedly/12674403#12674403">this question</a>.</p>
  
  <p>If I have a build with two instances of the <code>Test</code> task, what is the best (cleanest, least code, most robust) way to completely separate those two tasks so that their outputs don't overlap?</p>
  
  <p>I've tried setting their <code>testResultsDir</code> and <code>testReportsDir</code> properties, but that didn't seem to work as expected. (That is, the output got written to separate directories, but still the two tasks re-ran their respective tests with each run.)</p>