aboutsummaryrefslogtreecommitdiff
path: root/integration-tests
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-13 13:44:05 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-13 14:23:08 +0200
commit57b9432fb971926c9a6a904f932d69c7fa022ef3 (patch)
treeb84c55da86d4840a5bdb76eb1240011186d74acb /integration-tests
parentf8f376ca9a95eb414dfa5428ac636611dcbbea39 (diff)
downloaddokka-57b9432fb971926c9a6a904f932d69c7fa022ef3.tar.gz
dokka-57b9432fb971926c9a6a904f932d69c7fa022ef3.tar.bz2
dokka-57b9432fb971926c9a6a904f932d69c7fa022ef3.zip
BasicGradleIntegrationTest: Cover dokkaSourceSet configureEach
Diffstat (limited to 'integration-tests')
-rw-r--r--integration-tests/gradle/projects/it-basic/build.gradle.kts9
-rw-r--r--integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt7
2 files changed, 15 insertions, 1 deletions
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts
index e5a44555..1de92418 100644
--- a/integration-tests/gradle/projects/it-basic/build.gradle.kts
+++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts
@@ -1,3 +1,5 @@
+import org.jetbrains.dokka.gradle.DokkaTask
+
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
@@ -9,3 +11,10 @@ dependencies {
implementation(kotlin("stdlib"))
}
+tasks.withType<DokkaTask> {
+ dokkaSourceSets {
+ configureEach {
+ moduleDisplayName = "Basic Project"
+ }
+ }
+}
diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt
index 9ea47d96..5e23a753 100644
--- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt
+++ b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt
@@ -57,7 +57,7 @@ class BasicGradleIntegrationTest(override val versions: BuildVersions) : Abstrac
val navigationHtml = File(this, "navigation.html")
assertTrue(navigationHtml.isFile, "Missing navigation.html")
- val moduleOutputDir = File(this, "it-basic")
+ val moduleOutputDir = File(this, "-basic -project")
assertTrue(moduleOutputDir.isDirectory, "Missing module directory")
val moduleIndexHtml = File(moduleOutputDir, "index.html")
@@ -77,6 +77,11 @@ class BasicGradleIntegrationTest(override val versions: BuildVersions) : Abstrac
assertNoUnresolvedLInks(file)
assertNoHrefToMissingLocalFileOrDirectory(file)
}
+
+ assertTrue(
+ allHtmlFiles().any { file -> "Basic Project" in file.readText() },
+ "Expected configured moduleDisplayName to be present in html"
+ )
}
private fun File.assertJavadocOutputDir() {