aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/src
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-02-09 15:59:40 +0300
committerGitHub <noreply@github.com>2022-02-09 15:59:40 +0300
commit019cef47f1bf993a7a25ec73e88b1d9da25528eb (patch)
treed10defa35533f16221c7a3befba000475449d977 /integration-tests/gradle/src
parent39f6b38bfbfb01d8ce6ae23705b09f65ab72fa64 (diff)
downloaddokka-019cef47f1bf993a7a25ec73e88b1d9da25528eb.tar.gz
dokka-019cef47f1bf993a7a25ec73e88b1d9da25528eb.tar.bz2
dokka-019cef47f1bf993a7a25ec73e88b1d9da25528eb.zip
Add KotlinWebSite plugin to transform samples (#2349)
Diffstat (limited to 'integration-tests/gradle/src')
-rw-r--r--integration-tests/gradle/src/integrationTest/kotlin/org/jetbrains/dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt13
1 files changed, 12 insertions, 1 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
index 4f56ba55..a5b61b1d 100644
--- 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
@@ -3,7 +3,8 @@ package org.jetbrains.dokka.it.gradle.kotlin
import org.gradle.testkit.runner.TaskOutcome
import org.jetbrains.dokka.it.S3Project
import org.jetbrains.dokka.it.copyAndApplyGitDiff
-import org.jetbrains.dokka.it.gradle.*
+import org.jetbrains.dokka.it.gradle.AbstractGradleIntegrationTest
+import org.jetbrains.dokka.it.gradle.BuildVersions
import org.junit.runners.Parameterized
import java.io.File
import kotlin.test.*
@@ -28,6 +29,16 @@ class StdlibGradleIntegrationTest(override val versions: BuildVersions) : Abstra
templateProjectDir.listFiles().orEmpty()
.forEach { topLevelFile -> topLevelFile.copyRecursively(File(projectDir, topLevelFile.name)) }
+ val pluginDir = File("projects", "stdlib/dokka-samples-transformer-plugin")
+ pluginDir.listFiles().orEmpty()
+ .forEach { topLevelFile ->
+ topLevelFile.copyRecursively(
+ File(
+ projectDir.resolve("dokka-samples-transformer-plugin").also { it.mkdir() }, topLevelFile.name
+ )
+ )
+ }
+
copyAndApplyGitDiff(File("projects", "stdlib/stdlib.diff"))
}