Skip to content

Commit

Permalink
Fix StdLib integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Feb 12, 2022
1 parent 4524224 commit 16e7870
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion integration-tests/gradle/projects/stdlib/stdlib.diff
Expand Up @@ -37,7 +37,7 @@ diff --git a/build.gradle b/build.gradle
index aa8f21b..dd6a2ae 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,80 +1,428 @@
@@ -1,80 +1,444 @@
+import org.jetbrains.dokka.Platform
+
plugins {
Expand Down Expand Up @@ -163,6 +163,7 @@ index aa8f21b..dd6a2ae 100644
+ task dokkaStdlib(type: org.jetbrains.dokka.gradle.DokkaTask) {
+ outputDirectory.set(new File(outputDir, "/kotlin-stdlib"))
+ moduleName.set("kotlin-stdlib")
+ pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """{ "mergeNoExpectActualDeclarations": "true" }"""])
+ dokkaSourceSets {
+ register("kotlin-stdlib-common") {
+ skipDeprecated.set(false)
Expand All @@ -179,6 +180,16 @@ index aa8f21b..dd6a2ae 100644
+ sourceRoots.from("$kotlin_root/core/builtins/native")
+ sourceRoots.from("$kotlin_root/core/builtins/src")
+ sourceRoots.from("$kotlin_sources/kotlin-stdlib-common")
+ sourceLink {
+ localDirectory.set(file("$kotlin_sources/kotlin-stdlib-common"))
+ remoteUrl.set(new URL("https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib/common/src"))
+ remoteLineSuffix.set("#L")
+ }
+ sourceLink {
+ localDirectory.set(file("$kotlin_root/core/builtins/src"))
+ remoteUrl.set(new URL("https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib/src"))
+ remoteLineSuffix.set("#L")
+ }
+ }
+
+ register("kotlin-stdlib-java-common") {
Expand Down Expand Up @@ -220,6 +231,11 @@ index aa8f21b..dd6a2ae 100644
+ matchingRegex.set("kotlin.coroutines.experimental.migration(\$|\\.).*")
+ suppress.set(true)
+ }
+ sourceLink {
+ localDirectory.set(file("$kotlin_sources/kotlin-stdlib"))
+ remoteUrl.set(new URL("https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib/jvm/src"))
+ remoteLineSuffix.set("#L")
+ }
+ }
+
+
Expand Down
Expand Up @@ -52,8 +52,8 @@ class StdlibGradleIntegrationTest(override val versions: BuildVersions) : Abstra

projectOutputLocation.allHtmlFiles().forEach { file ->
assertContainsNoErrorClass(file)
// assertNoUnresolvedLinks(file)
// assertNoHrefToMissingLocalFileOrDirectory(file)
assertNoUnresolvedLinks(file)
assertNoHrefToMissingLocalFileOrDirectory(file)
assertNoEmptyLinks(file)
assertNoEmptySpans(file)
assertNoUnsubstitutedTemplatesInHtml(file)
Expand Down

0 comments on commit 16e7870

Please sign in to comment.