diff options
Diffstat (limited to 'integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains')
-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) - } - } -} |