diff --git a/build.gradle.kts b/build.gradle.kts index b80216e1..743f40e4 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -29,8 +29,17 @@ subprojects { kotlinOptions.jvmTarget = "1.8" } + val testIntegrationAlias = "testIntegration" + val sourceSets = the() + sourceSets { + create(testIntegrationAlias) { + compileClasspath += sourceSets["main"].output + configurations["testRuntimeClasspath"] + runtimeClasspath += output + compileClasspath + sourceSets["test"].runtimeClasspath + } + } + if (project.name !in notToPublish) { apply(plugin = "org.jetbrains.dokka") apply(plugin = "maven-publish") @@ -105,6 +114,17 @@ subprojects { } } + tasks.register(testIntegrationAlias) { + description = "Runs the integration tests." + group = "verification" + testClassesDirs = sourceSets[testIntegrationAlias].output.classesDirs + classpath = sourceSets[testIntegrationAlias].runtimeClasspath + mustRunAfter(tasks["test"]) + } + + tasks.named("check") { + dependsOn(testIntegrationAlias) + } } diff --git a/kohttp-jackson/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt b/kohttp-jackson/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt new file mode 100644 index 00000000..96878cf8 --- /dev/null +++ b/kohttp-jackson/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt @@ -0,0 +1,11 @@ +package io.github.rybalkinsd.kohttp + +import org.junit.Test + +class IntegrationTest { + + @Test + fun `stub test`() { + + } +} diff --git a/kohttp-test/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt b/kohttp-test/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt new file mode 100644 index 00000000..96878cf8 --- /dev/null +++ b/kohttp-test/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt @@ -0,0 +1,11 @@ +package io.github.rybalkinsd.kohttp + +import org.junit.Test + +class IntegrationTest { + + @Test + fun `stub test`() { + + } +} diff --git a/kohttp/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt b/kohttp/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt new file mode 100644 index 00000000..96878cf8 --- /dev/null +++ b/kohttp/src/testIntegration/kotlin/io/github/rybalkinsd/kohttp/IntegrationTest.kt @@ -0,0 +1,11 @@ +package io.github.rybalkinsd.kohttp + +import org.junit.Test + +class IntegrationTest { + + @Test + fun `stub test`() { + + } +}