title: run single integration test with gradle
body: <p>I'm trying to run a single integration tests using gradle's <code>-Dtest.single</code> flag. I have added another source set, <code>src/integrationTest</code> and put the tests in there. I have an integration test task</p>
  
  <pre class="lang-groovy prettyprint-override"><code>task integrationTests(type: Test) {
      dependsOn 'assemble', 'integrationTestClasses'    
      testClassesDir = sourceSets.integrationTest.output.classesDir
      classpath = sourceSets.integrationTest.runtimeClasspath
  }
  </code></pre>
  
  <p>This runs fine, but if I try to run a single test it tells me it cannot find a matching test. I don't want to have to run every integration test each time I am writing a new one. Is there a way to do this?</p>