Skip to content

Commit

Permalink
Fix failing assertion in DokkaPluginFunctionalTest
Browse files Browse the repository at this point in the history
follow up #3796
  • Loading branch information
adam-enko committed Sep 16, 2024
1 parent d5515e9 commit 8dd27f2
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,25 @@ class DokkaPluginFunctionalTest : FunSpec({
configurationsDump
.filter { (k, v) -> "$k=$v".contains("dokka", ignoreCase = true) }
.asClue { dokkaConfigurations ->

dokkaConfigurations.keys.shouldContainExactlyInAnyOrder(
expectedFormats.flatMap { format ->
listOf(
"Configuration dokka${format}GeneratorRuntimeResolver~internal",
"Configuration dokka${format}ModuleOutputDirectoriesResolver~internal",
"Configuration dokka${format}PluginIntransitiveResolver~internal",
"Configuration dokka${format}PublicationPluginResolver~internal",
)
}
)

expectedFormats.forEach { expectedFormat ->

val format = expectedFormat.lowercase()

@Suppress("LocalVariableName")
val Format = format.uppercaseFirstChar()

dokkaConfigurations.keys.shouldContainExactlyInAnyOrder(
listOf(
"Configuration dokka${Format}GeneratorRuntimeResolver~internal",
"Configuration dokka${Format}ModuleOutputDirectoriesResolver~internal",
"Configuration dokka${Format}PluginIntransitiveResolver~internal",
"Configuration dokka${Format}PublicationPluginResolver~internal",
)
)

mapOf(
"Configuration dokka${Format}GeneratorRuntimeResolver~internal" to /* language=text */ """
|[Internal Dokka Configuration] Dokka Generator runtime classpath for $format - will be used in Dokka Worker. Should contain all transitive dependencies, plugins (and their transitive dependencies), so Dokka Worker can run.
Expand Down

0 comments on commit 8dd27f2

Please sign in to comment.