docs: Add integration test tutorial

This commit is contained in:
Andras Slemmer
2016-11-25 15:26:00 +00:00
parent 56ada37259
commit 220ccdbe13
5 changed files with 207 additions and 0 deletions

View File

@ -19,17 +19,31 @@ repositories {
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
sourceSets {
main {
resources {
srcDir "../../../config/dev"
}
}
integrationTest {
kotlin {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/kotlin')
}
}
}
dependencies {
compile project(':core')
compile project(':client')
compile project(':test-utils')
compile "org.graphstream:gs-core:1.3"
compile("org.graphstream:gs-ui:1.3") {
@ -52,3 +66,8 @@ applicationDistribution.into("bin") {
from(getClientRpcTutorial)
fileMode = 0755
}
task integrationTest(type: Test) {
testClassesDir = sourceSets.integrationTest.output.classesDir
classpath = sourceSets.integrationTest.runtimeClasspath
}