Skip to content

Instantly share code, notes, and snippets.

@tori3852
Created July 13, 2018 14:55
Show Gist options
  • Save tori3852/9a1a5186d2831c24a12e4d2871da7e76 to your computer and use it in GitHub Desktop.
Save tori3852/9a1a5186d2831c24a12e4d2871da7e76 to your computer and use it in GitHub Desktop.
Gradle integration tests folder (no auto execution)
configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration/java')
}
resources.srcDir file('src/integration/resources')
}
}
task integrationTest(type: Test) {
classpath = sourceSets.integrationTest.runtimeClasspath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment