From 019cef47f1bf993a7a25ec73e88b1d9da25528eb Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Wed, 9 Feb 2022 15:59:40 +0300 Subject: Add KotlinWebSite plugin to transform samples (#2349) --- .../dokka/it/gradle/kotlin/StdlibGradleIntegrationTest.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'integration-tests/gradle/src/integrationTest') 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")) } -- cgit