From a9be511b052755258bc92225c4f5a8977f174b89 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Thu, 20 Aug 2020 10:59:28 +0200 Subject: Add task descriptions to all dokka tasks --- .../org/jetbrains/dokka/gradle/DokkaPluginApplyTest.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'runners/gradle-plugin/src/test/kotlin') 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 @@ -63,6 +63,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() -- cgit