diff --git a/dokka-integration-tests/gradle/src/testExampleProjects/kotlin/ExampleProjectsTest.kt b/dokka-integration-tests/gradle/src/testExampleProjects/kotlin/ExampleProjectsTest.kt index 58eaf8cb0e6..02caf490926 100644 --- a/dokka-integration-tests/gradle/src/testExampleProjects/kotlin/ExampleProjectsTest.kt +++ b/dokka-integration-tests/gradle/src/testExampleProjects/kotlin/ExampleProjectsTest.kt @@ -197,28 +197,22 @@ class ExampleProjectsTest { .build { dokkaOutputDir.shouldBeADirectory() - withClue("expect file trees are the same") { - val expectedFileTree = expectedDataDir.toTreeString() - val actualFileTree = dokkaOutputDir.toTreeString() - withClue({ - """ - expectedDataDir: ${expectedDataDir.toUri()} - actualOutputDir: ${dokkaOutputDir.toUri()} - """.trimIndent() - }) { - expectedFileTree shouldBe actualFileTree - } - } - withClue({ """ - expect directories are the same - dokkaOutputDir ${dokkaOutputDir.walk().toList()} - exampleDataDir ${expectedDataDir.walk().toList()} + expectedDataDir: ${expectedDataDir.toUri()} + actualOutputDir: ${dokkaOutputDir.toUri()} """.trimIndent() }) { - dokkaOutputDir.shouldHaveSameStructureAs(expectedDataDir, skipEmptyDirs = true) - dokkaOutputDir.shouldHaveSameStructureAndContentAs(expectedDataDir, skipEmptyDirs = true) + withClue("expect file trees are the same") { + val expectedFileTree = expectedDataDir.toTreeString() + val actualFileTree = dokkaOutputDir.toTreeString() + expectedFileTree shouldBe actualFileTree + } + + withClue("expect directories are the same") { + dokkaOutputDir.shouldHaveSameStructureAs(expectedDataDir, skipEmptyDirs = true) + dokkaOutputDir.shouldHaveSameStructureAndContentAs(expectedDataDir, skipEmptyDirs = true) + } } } }