title: How to let gradle generate junit test result reports for custom sourceset?
body: <p>I have set up a source set for functional testing in my project. Everything is working as expected, except the generation of junit test reports. I cannot see what configuration bit I am missing. Here is what I have:</p>
  
  <pre><code>sourceSets {
      // Note that just declaring this sourceset creates two configurations.
      funcTest {
          scala {
              srcDir 'src/funcTest/scala'
              compileClasspath += main.output
              runtimeClasspath += main.output
          }
      }
  }
  
  configurations {
      funcTestCompile.extendsFrom testCompile
      funcTestRuntime.extendsFrom testRuntime
  }
  
  task funcTest(type:Test){
      description = "Run integration tests (located in src/funcTest/...)."
      testClassesDir = project.sourceSets.funcTest.output.classesDir
      testSrcDirs = project.sourceSets.funcTest.scala.source
      classpath = project.sourceSets.funcTest.runtimeClasspath
      dependsOn test
  }
  </code></pre>
  
  <p>The above builds and runs my tests. However, the reports directory structure looks like this:</p>
  
  <pre><code>./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/base-style.css
  ./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/css3-pie-1.0beta3.htc
  ./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/MongoConfigTest.html
  ./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/MongoConfigTest.scala.html
  ./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/report.js
  ./build/reports/tests/No source file found at src/test/scala/com/hp/snapfish/ecommerce/taxservice/mongo/style.css
  </code></pre>
  
  <p>What am I missing? Why is creating that </p>
  
  <blockquote>
    <p>No source file found at src</p>
  </blockquote>
  
  <p>directory? I figure it needs to know that it should be looking for scala files, but I am not sure how to tell it that. I must be missing something obvious.</p>