diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-02-21 17:03:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 17:03:05 +0100 |
commit | f4a6a6a2d62174989e1106f279a6d578d90c22c1 (patch) | |
tree | ce19242722076c6233f801417e82ee273f4be6f6 /integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka | |
parent | ecd2d337967244add2d52d7b7456a21d8e6ede54 (diff) | |
download | dokka-f4a6a6a2d62174989e1106f279a6d578d90c22c1.tar.gz dokka-f4a6a6a2d62174989e1106f279a6d578d90c22c1.tar.bz2 dokka-f4a6a6a2d62174989e1106f279a6d578d90c22c1.zip |
Remove outdated stdlib integration test (#2841)
Diffstat (limited to 'integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka')
-rw-r--r-- | integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt b/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt deleted file mode 100644 index fc3ed66f..00000000 --- a/integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt +++ /dev/null @@ -1,65 +0,0 @@ -package org.jetbrains.dokka.it.gradle.kotlin - -import org.gradle.testkit.runner.TaskOutcome -import org.jetbrains.dokka.it.TestOutputCopier -import org.jetbrains.dokka.it.copyAndApplyGitDiff -import org.jetbrains.dokka.it.gradle.AbstractGradleIntegrationTest -import org.jetbrains.dokka.it.gradle.BuildVersions -import org.junit.runners.Parameterized -import java.io.File -import java.net.URL -import kotlin.test.* - -class StdlibGradleIntegrationTest(override val versions: BuildVersions) : AbstractGradleIntegrationTest(), - TestOutputCopier { - - companion object { - @get:JvmStatic - @get:Parameterized.Parameters(name = "{0}") - val versions = BuildVersions.permutations( - gradleVersions = listOf("5.6"), - kotlinVersions = listOf("1.4.10") - ) - } - - override val projectOutputLocation: File by lazy { File(projectDir, "build/dokka/kotlin-stdlib") } - - private val currentDokkaVersion: String = "1.5.0"//checkNotNull(System.getenv("DOKKA_VERSION")) // uncomment after updating of StdLib - - @BeforeTest - fun prepareProjectFiles() { - val templateProjectDir = File("projects", "stdlib/kotlin-dokka-stdlib") - templateProjectDir.listFiles().orEmpty() - .forEach { topLevelFile -> topLevelFile.copyRecursively(File(projectDir, topLevelFile.name)) } - - val pluginDir = File("projects", "stdlib/plugins") - pluginDir.listFiles().orEmpty() - .forEach { topLevelFile -> - topLevelFile.copyRecursively( - File( - projectDir.resolve("plugins").also { it.mkdir() }, topLevelFile.name - ) - ) - } - - copyAndApplyGitDiff(File("projects", "stdlib/stdlib.diff")) - } - - @Test - fun execute() { - val result = createGradleRunner("callDokka", "-Pdokka_it_version=$currentDokkaVersion", "-i", "-s").buildRelaxed() - - assertEquals(TaskOutcome.SUCCESS, assertNotNull(result.task(":callDokka")).outcome) - - assertTrue(projectOutputLocation.isDirectory, "Missing dokka output directory") - - projectOutputLocation.allHtmlFiles().forEach { file -> - assertContainsNoErrorClass(file) - assertNoUnresolvedLinks(file) - assertNoHrefToMissingLocalFileOrDirectory(file) - assertNoEmptyLinks(file) - assertNoEmptySpans(file) - assertNoUnsubstitutedTemplatesInHtml(file) - } - } -} |