title: In gradle how do you create separate test reports for separate tasks?
body: <p>I have three test source sets</p>
  
  <pre><code>/src/tests/...
  src/test-integration/
  src/test-acceptance/
  </code></pre>
  
  <p><code>gradle build</code> only runs the unit tests while I have separate tasks for running test-integration and test-acceptance. <a href="http://blog.diabol.se/?cat=47" rel="nofollow">This setup</a>, basically:</p>
  
  <pre><code>task acceptanceTest(type: Test) {
      description = "Runs acceptance tests"
      testReportDirName ="acceptance"
      testClassesDir = sourceSets.acceptanceTest.output.classesDir
      classpath += sourceSets.test.runtimeClasspath + sourceSets.acceptanceTest.runtimeClasspath
      useJUnit()
      testLogging {
        events "passed", "skipped", "failed"
      }
  }
  </code></pre>
  
  <p>Now my only problem is that I'd like acceptance/integration tests to print their reports somewhere other than "test" folder, since they over-write one another. Basically I'd like to change the <code>testReportDirName</code> property but only for a task. </p>