diff options
Diffstat (limited to 'integration-tests/gradle')
-rw-r--r-- | integration-tests/gradle/projects/it-basic/build.gradle.kts | 2 | ||||
-rw-r--r-- | integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/BasicGradleIntegrationTest.kt | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/integration-tests/gradle/projects/it-basic/build.gradle.kts b/integration-tests/gradle/projects/it-basic/build.gradle.kts index 2769677f..a155d9d7 100644 --- a/integration-tests/gradle/projects/it-basic/build.gradle.kts +++ b/integration-tests/gradle/projects/it-basic/build.gradle.kts @@ -7,6 +7,8 @@ plugins { id("org.jetbrains.dokka") } +version = "1.5-SNAPSHOT" + apply(from = "../template.root.gradle.kts") dependencies { 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 f3bcfd59..562a224e 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 @@ -108,6 +108,19 @@ class BasicGradleIntegrationTest(override val versions: BuildVersions) : Abstrac private fun File.assertJavadocOutputDir() { assertTrue(isDirectory, "Missing dokka javadoc output directory") + + val indexFile = File(this, "index.html") + assertTrue(indexFile.isFile, "Missing index.html") + assertTrue( + """<title>Basic Project 1.5-SNAPSHOT API </title>""" in indexFile.readText(), + "Header with version number not present in index.html" + ) + + assertTrue { + allHtmlFiles().all { + "0.0.1" !in it.readText() + } + } } private fun File.assertGfmOutputDir() { |