Skip to content

Commit

Permalink
Check all html files except navigation in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 2, 2023
1 parent d5eab97 commit 5505436
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class MultiModule0IntegrationTest : AbstractGradleIntegrationTest() {
"Expected moduleC being mentioned in -modules.html"
)

val indexHtmls = outputDir.walkTopDown().filter {
it.isFile && it.name == "index.html"
val htmlsWithHomepageLink = outputDir.walkTopDown().filter {
it.isFile && it.extension == "html" && it.name != "navigation.html"
}.toList()

assertEquals(10, indexHtmls.size)
assertEquals(16, htmlsWithHomepageLink.size)

indexHtmls.forEach {
htmlsWithHomepageLink.forEach {
assertTrue(
it.readText().contains(
"""https://github.com/Kotlin/dokka/tree/master/integration-tests/gradle/projects/it-multimodule-0/"""
Expand Down

0 comments on commit 5505436

Please sign in to comment.