diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-09-03 13:39:58 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-09-04 08:55:02 +0200 |
commit | cc3d4872f70cfebaf5d85c72af0030f526671915 (patch) | |
tree | b8f75efddd4cb631b930b0d24efdbdcc4159ee73 /integration-tests/gradle | |
parent | 4d8e84396824b8a3d5d6e3e26ea4911fa944e3aa (diff) | |
download | dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.gz dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.tar.bz2 dokka-cc3d4872f70cfebaf5d85c72af0030f526671915.zip |
Javadoc version number is always 0.0.1 #1406
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() { |