Skip to content

Commit

Permalink
remove DC config logging
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Dec 5, 2024
1 parent 3a1831a commit 63757dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions dokka-integration-tests/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ testing {
}
}
val testExampleProjects by suites.registering(JvmTestSuite::class) {

dependencies {
implementation(platform(libs.kotlinxSerialization.bom))
implementation(libs.kotlinxSerialization.json)
}

targets.configureEach {
testTask.configure {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.kotest.matchers.sequences.shouldNotBeEmpty
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import io.kotest.matchers.string.shouldNotContain
import kotlinx.serialization.json.Json
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome.*
import org.jetbrains.dokka.gradle.utils.*
Expand Down Expand Up @@ -228,22 +227,10 @@ class ExampleProjectsTest {
.build {
actualHtmlDir.shouldBeADirectory()

val dokkaConfigurationJsonFiles = testCase.project.findFiles { it.name == "dokka-configuration.json" }
val dokkaConfigContent = dokkaConfigurationJsonFiles.joinToString("\n\n") { dcFile ->
// re-encode the JSON to a compact format, to prevent the log output being completely spammed
val compactJson = Json.parseToJsonElement(dcFile.readText())
"""
- ${dcFile.invariantSeparatorsPathString}
$compactJson
""".trimIndent()
}

withClue(
"""
|expectedDataDir: ${expectedDataDir.toUri()}
|actualHtmlDir: ${actualHtmlDir.toUri()}
|dokkaConfigurationJsons [${dokkaConfigurationJsonFiles.count()}]:
|$dokkaConfigContent
""".trimMargin()
) {
withClue("expect file trees are the same") {
Expand Down

0 comments on commit 63757dd

Please sign in to comment.