diff options
Diffstat (limited to 'runners/gradle-plugin/src/test')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt index 713109bf..88bef2b2 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinSourceSetGistTest.kt @@ -2,6 +2,7 @@ package org.jetbrains.dokka.gradle import org.jetbrains.dokka.gradle.utils.withDependencies_ import org.gradle.api.artifacts.FileCollectionDependency +import org.gradle.api.internal.project.DefaultProject import org.gradle.kotlin.dsl.get import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.dokka.gradle.kotlin.gistOf @@ -163,6 +164,7 @@ class KotlinSourceSetGistTest { kotlin.jvm() kotlin.macosX64("macos") + (project as DefaultProject).evaluate() val commonMainSourceSet = kotlin.sourceSets.getByName("commonMain") val commonMainSourceSetGist = project.gistOf(commonMainSourceSet) @@ -232,17 +234,11 @@ class KotlinSourceSetGistTest { "Expected macosTest not being marked with 'isMain'" ) + // requires `project.evaluate()` assertEquals( setOf("commonMain"), jvmMainSourceSetGist.dependentSourceSetNames.get(), "Expected jvmMain to depend on commonMain by default" ) - - /* Why not? */ - jvmMainSourceSet.dependsOn(macosMainSourceSet) - assertEquals( - setOf("commonMain", "macosMain"), jvmMainSourceSetGist.dependentSourceSetNames.get(), - "Expected dependent source set changes to be reflected in gist" - ) } } |