[Gradle] Specify children projects names in functional tests to avoid ambiguity

#KTI-1221 In Progress
This commit is contained in:
Alexander.Likhachev
2023-05-17 21:50:16 +02:00
committed by Space Team
parent e9fa576297
commit 46e83ef7da
2 changed files with 4 additions and 4 deletions
@@ -106,11 +106,11 @@ class JsPluginKgpDependencyResolutionPropertyTest {
val project = buildProject { val project = buildProject {
} }
val mppSubproject = buildProject({ withParent(project) }) { val mppSubproject = buildProject({ withName("mpp").withParent(project) }) {
applyMultiplatformPlugin() applyMultiplatformPlugin()
} }
val jsSubproject = buildProject({ withParent(project) }) { val jsSubproject = buildProject({ withName("js").withParent(project) }) {
plugins.apply("org.jetbrains.kotlin.js") plugins.apply("org.jetbrains.kotlin.js")
} }
@@ -24,8 +24,8 @@ class KT58319ProjectMetadataProvider {
@Test @Test
fun `test - ProjectMetadataProviderImpl - supports single target projects`() { fun `test - ProjectMetadataProviderImpl - supports single target projects`() {
val rootProject = buildProject() val rootProject = buildProject()
val producerProject = buildProjectWithMPP(projectBuilder = { withParent(rootProject) }) val producerProject = buildProjectWithMPP(projectBuilder = { withName("producer").withParent(rootProject) })
val consumerProject = buildProjectWithMPP(projectBuilder = { withParent(rootProject) }) val consumerProject = buildProjectWithMPP(projectBuilder = { withName("consumer").withParent(rootProject) })
producerProject.multiplatformExtension.jvm() producerProject.multiplatformExtension.jvm()
consumerProject.multiplatformExtension.jvm() consumerProject.multiplatformExtension.jvm()