title: Gradle file is not running tests
body: <p>I am trying to run my junit tests through gradle file but build gets successful but does not run any tests. This is how my gradle file looks like:</p>
  
  <pre><code>apply plugin: 'java'
  
  // Creating a new sourceSet because you should move your integration tests to a separate directory.
  sourceSets {
      test {
              java.srcDirs = ['src/integration-test/java']
           }
              integrationTest {
              java.srcDirs = ['src/integration-test/java']        
              compileClasspath += main.output + test.output
              runtimeClasspath += main.output + test.output 
      }
  }
  
  configurations {
      integrationTestCompile.extendsFrom testCompile
      integrationTestRuntime.extendsFrom testRuntime
  }
  
  
  
  task integrationTest(type: Test, description: 'Runs the integration tests', group: 'Verification') {
              testClassesDir = sourceSets.integrationTest.output.classesDir
              classpath = sourceSets.integrationTest.runtimeClasspath
            }
  </code></pre>
  
  <p>After running task integrationTest, build runs successfully but it does not run any tests. Does anyone know why?</p>