diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-20 10:59:28 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-20 11:46:28 +0200 |
commit | a9be511b052755258bc92225c4f5a8977f174b89 (patch) | |
tree | 5e5870c43c1e6acd55144e1221857d77adacc1c2 /runners/gradle-plugin/src/test/kotlin | |
parent | a7dec28a206ffb7fdeede1743edfd318bd1e2920 (diff) | |
download | dokka-a9be511b052755258bc92225c4f5a8977f174b89.tar.gz dokka-a9be511b052755258bc92225c4f5a8977f174b89.tar.bz2 dokka-a9be511b052755258bc92225c4f5a8977f174b89.zip |
Add task descriptions to all dokka tasks
Diffstat (limited to 'runners/gradle-plugin/src/test/kotlin')
-rw-r--r-- | runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt index db218b9f..0000cc78 100644 --- a/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt +++ b/runners/gradle-plugin/src/test/kotlin/org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt @@ -64,6 +64,18 @@ class DokkaPluginApplyTest { } @Test + fun `all dokka tasks provide a task description`() { + val project = ProjectBuilder.builder().build() + project.plugins.apply("org.jetbrains.dokka") + project.tasks.filter { "dokka" in it.name.toLowerCase() }.forEach { dokkaTask -> + assertTrue( + dokkaTask.description.orEmpty().isNotEmpty(), + "Expected description for task ${dokkaTask.name}" + ) + } + } + + @Test fun `parent dokka tasks have children configured`() { val root = ProjectBuilder.builder().withName("root").build() val child = ProjectBuilder.builder().withName("child").withParent(root).build() |