diff options
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt index 97d1feea..73afdb43 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaMultiModuleTaskTest.kt @@ -6,10 +6,7 @@ import org.gradle.kotlin.dsl.* import org.gradle.testfixtures.ProjectBuilder import org.jetbrains.dokka.* import java.io.File -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertFailsWith -import kotlin.test.assertTrue +import kotlin.test.* class DokkaMultiModuleTaskTest { @@ -100,6 +97,21 @@ class DokkaMultiModuleTaskTest { } @Test + fun `multimodule task should not include unspecified version`(){ + childDokkaTask.apply { + dokkaSourceSets.create("main") + dokkaSourceSets.create("test") + } + + multiModuleTask.apply { + moduleVersion by "unspecified" + } + + val dokkaConfiguration = multiModuleTask.buildDokkaConfiguration() + assertNull(dokkaConfiguration.moduleVersion) + } + + @Test fun `setting dokkaTaskNames declares proper task dependencies`() { val dependenciesInitial = multiModuleTask.taskDependencies.getDependencies(multiModuleTask).toSet() assertEquals(1, dependenciesInitial.size, "Expected one dependency") |