diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-03-24 16:19:51 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-03-25 12:54:56 +0100 |
commit | 3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9 (patch) | |
tree | 3ec24bb98f64503501133ddf90a938e30db164a6 /testApi/src/main | |
parent | 3c6624aa876b9b55baa32b121240f7bc7eda8116 (diff) | |
download | dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.tar.gz dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.tar.bz2 dokka-3f8fef0f65fe96fb2a3b1dc2280a16b175fbb6c9.zip |
Fix stdlib tests by adding stdlib to the test classpath
Diffstat (limited to 'testApi/src/main')
-rw-r--r-- | testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt index d2db90b7..26b9a4b6 100644 --- a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt +++ b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt @@ -1,5 +1,6 @@ package org.jetbrains.dokka.testApi.testRunner +import com.intellij.openapi.application.PathManager import org.jetbrains.dokka.* import org.jetbrains.dokka.model.DModule import org.jetbrains.dokka.pages.ModulePageNode @@ -213,6 +214,22 @@ abstract class AbstractCoreTest { sourceLinks = sourceLinks ) } + + protected val jvmStdlibPath: String? by lazy { + PathManager.getResourceRoot(Strictfp::class.java, "/kotlin/jvm/Strictfp.class") + } + + protected val jsStdlibPath: String? by lazy { + PathManager.getResourceRoot(Any::class.java, "/kotlin/jquery") + } + + protected val commonStdlibPath: String? by lazy { + // TODO: feels hacky, find a better way to do it + ClassLoader.getSystemResource("kotlin/UInt.kotlin_metadata") + ?.file + ?.replace("file:", "") + ?.replaceAfter(".jar", "") + } } data class TestMethods( |