Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 23, 2015 18:07
Show Gist options
  • Save chbatey/6da41beb0d620618d180 to your computer and use it in GitHub Desktop.
Save chbatey/6da41beb0d620618d180 to your computer and use it in GitHub Desktop.
Adding E2E source sets
sourceSets {
e2eTest {
java {
srcDir 'src/e2etest/java'
}
resources {
srcDir 'src/e2etest/resources'
}
compileClasspath += sourceSets.main.runtimeClasspath
compileClasspath += sourceSets.test.compileClasspath
}
}
task e2eTest(type: Test) {
description = "Runs End to End Tests"
testClassesDir = sourceSets.e2eTest.output.classesDir
classpath += sourceSets.e2eTest.runtimeClasspath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment