diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-06-03 11:13:02 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-04 23:49:37 +0200 |
commit | 435e34fe4d63b85ec8f93155153eda0ea2303d73 (patch) | |
tree | c465fa6dd4b3c61e78709f02929bb5eed1910b6d /runners/gradle-plugin/src/test/kotlin | |
parent | 6dc9498ca849645ecb4ec923bb7116b245dca706 (diff) | |
download | dokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.tar.gz dokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.tar.bz2 dokka-435e34fe4d63b85ec8f93155153eda0ea2303d73.zip |
Implement Project.dokka extension to align kotlin and groovey dokka configuration
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt new file mode 100644 index 00000000..0b80f4a2 --- /dev/null +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/KotlinDslDokkaTaskConfigurationTest.kt @@ -0,0 +1,19 @@ +package org.jetbrains.dokka.gradle + +import org.gradle.testfixtures.ProjectBuilder +import kotlin.test.Test +import kotlin.test.assertEquals + +class KotlinDslDokkaTaskConfigurationTest { + + @Test + fun `configure project using dokka extension function`() { + val project = ProjectBuilder.builder().build() + project.plugins.apply("org.jetbrains.dokka") + project.dokka { this.outputFormat = "test" } + + project.tasks.withType(DokkaTask::class.java).forEach { dokkaTask -> + assertEquals("test", dokkaTask.outputFormat) + } + } +} |