rename integration test to test integration
This commit is contained in:
@@ -1,38 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("idea")
|
|
||||||
|
|
||||||
kotlin("jvm")
|
|
||||||
}
|
|
||||||
|
|
||||||
@Suppress("unused")
|
|
||||||
fun DependencyHandler.integrationTestImplementation(
|
|
||||||
dependencyNotation: Any,
|
|
||||||
): Dependency? = add("integrationTestImplementation", dependencyNotation)
|
|
||||||
|
|
||||||
@Suppress("unused")
|
|
||||||
fun DependencyHandler.integrationTestRuntimeOnly(
|
|
||||||
dependencyNotation: Any,
|
|
||||||
): Dependency? = add("integrationTestRuntimeOnly", dependencyNotation)
|
|
||||||
|
|
||||||
sourceSets.create("integration-test") {
|
|
||||||
compileClasspath += sourceSets["main"].output
|
|
||||||
runtimeClasspath += sourceSets["main"].output
|
|
||||||
idea.module {
|
|
||||||
testSources.from(sourceSets["integration-test"].kotlin.srcDirs, sourceSets["integration-test"].java.srcDirs)
|
|
||||||
testResources.from(sourceSets["integration-test"].resources.srcDirs)
|
|
||||||
}
|
|
||||||
configurations.let {
|
|
||||||
it["integrationTestImplementation"].extendsFrom(configurations.implementation.get())
|
|
||||||
it["integrationTestRuntimeOnly"].extendsFrom(configurations.runtimeOnly.get())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
|
||||||
register<Test>("integrationTest") {
|
|
||||||
description = "Runs integration tests."
|
|
||||||
group = "verification"
|
|
||||||
testClassesDirs = sourceSets["integration-test"].output.classesDirs
|
|
||||||
classpath = sourceSets["integration-test"].runtimeClasspath
|
|
||||||
}
|
|
||||||
check { dependsOn(getByName("integrationTest")) }
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
plugins {
|
||||||
|
id("idea")
|
||||||
|
|
||||||
|
kotlin("jvm")
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
fun DependencyHandler.testIntegrationImplementation(
|
||||||
|
dependencyNotation: Any,
|
||||||
|
): Dependency? = add("testIntegrationImplementation", dependencyNotation)
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
fun DependencyHandler.testIntegrationRuntimeOnly(
|
||||||
|
dependencyNotation: Any,
|
||||||
|
): Dependency? = add("testIntegrationRuntimeOnly", dependencyNotation)
|
||||||
|
|
||||||
|
sourceSets.create("test-integration") {
|
||||||
|
compileClasspath += sourceSets["main"].output
|
||||||
|
runtimeClasspath += sourceSets["main"].output
|
||||||
|
idea.module {
|
||||||
|
testSources.from(sourceSets["test-integration"].kotlin.srcDirs, sourceSets["test-integration"].java.srcDirs)
|
||||||
|
testResources.from(sourceSets["test-integration"].resources.srcDirs)
|
||||||
|
}
|
||||||
|
configurations.let {
|
||||||
|
it["testIntegrationImplementation"].extendsFrom(configurations.implementation.get())
|
||||||
|
it["testIntegrationRuntimeOnly"].extendsFrom(configurations.runtimeOnly.get())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
register<Test>("testIntegration") {
|
||||||
|
description = "Runs test integration."
|
||||||
|
group = "verification"
|
||||||
|
testClassesDirs = sourceSets["test-integration"].output.classesDirs
|
||||||
|
classpath = sourceSets["test-integration"].runtimeClasspath
|
||||||
|
}
|
||||||
|
check { dependsOn(getByName("testIntegration")) }
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common")
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common")
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-container")
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-container")
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-integration-test")
|
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-process-resource")
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-process-resource")
|
||||||
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.service-test-integration")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user