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 /plugins/base/src/test/kotlin/utils | |
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 'plugins/base/src/test/kotlin/utils')
-rw-r--r-- | plugins/base/src/test/kotlin/utils/ModelUtils.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/base/src/test/kotlin/utils/ModelUtils.kt b/plugins/base/src/test/kotlin/utils/ModelUtils.kt index 69c4f0d2..f65258b1 100644 --- a/plugins/base/src/test/kotlin/utils/ModelUtils.kt +++ b/plugins/base/src/test/kotlin/utils/ModelUtils.kt @@ -1,7 +1,8 @@ package utils -import org.jetbrains.dokka.plugability.DokkaPlugin +import org.jetbrains.dokka.DokkaConfigurationImpl import org.jetbrains.dokka.model.DModule +import org.jetbrains.dokka.plugability.DokkaPlugin abstract class AbstractModelTest(val path: String? = null, val pkg: String) : ModelDSL(), AssertDSL { @@ -12,9 +13,10 @@ abstract class AbstractModelTest(val path: String? = null, val pkg: String) : Mo prependPackage: Boolean = true, cleanupOutput: Boolean = true, pluginsOverrides: List<DokkaPlugin> = emptyList(), + configuration: DokkaConfigurationImpl? = null, block: DModule.() -> Unit ) { - val configuration = dokkaConfiguration { + val testConfiguration = configuration ?: dokkaConfiguration { passes { pass { sourceRoots = listOf("src/") @@ -27,13 +29,11 @@ abstract class AbstractModelTest(val path: String? = null, val pkg: String) : Mo testInline( query = ("$prepend\n$query").trim().trimIndent(), - configuration = configuration, + configuration = testConfiguration, cleanupOutput = cleanupOutput, pluginOverrides = pluginsOverrides ) { documentablesTransformationStage = block } } - - } |