Skip to content

Commit

Permalink
update dokkaGenerateModuleHtml assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-enko committed Nov 25, 2024
1 parent 3c52f0b commit 82774ae
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ import io.kotest.matchers.sequences.shouldBeEmpty
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import org.gradle.testkit.runner.TaskOutcome.*
import org.jetbrains.dokka.gradle.utils.*
import org.jetbrains.dokka.gradle.utils.addArguments
import org.jetbrains.dokka.gradle.utils.build
import org.jetbrains.dokka.gradle.utils.file
import org.jetbrains.dokka.gradle.utils.shouldBeADirectoryWithSameContentAs
import org.jetbrains.dokka.gradle.utils.sideBySide
import org.jetbrains.dokka.gradle.utils.toTreeString
import org.jetbrains.dokka.it.gradle.junit.DokkaGradlePluginTest
import org.jetbrains.dokka.it.gradle.junit.DokkaGradleProjectRunner
import org.jetbrains.dokka.it.gradle.junit.TestsDGPv2
Expand Down Expand Up @@ -110,7 +107,9 @@ class KotlinMultiplatformIT {
withClue("expect dokkaGenerate runs successfully") {
shouldHaveTask(":dokkaGenerate").shouldHaveOutcome(UP_TO_DATE, SUCCESS)
shouldHaveTask(":dokkaGeneratePublicationHtml").shouldHaveOutcome(FROM_CACHE, SUCCESS)
shouldHaveTask(":dokkaGenerateModuleHtml").shouldHaveOutcome(FROM_CACHE, SUCCESS)
}
withClue("only one project is documented, so expect no Dokka module generation") {
shouldNotHaveRunTask(":dokkaGenerateModuleHtml")
}
}

Expand All @@ -135,7 +134,9 @@ class KotlinMultiplatformIT {
}
withClue("expect dokkaGenerate* work tasks are loaded from cache") {
shouldHaveTask(":dokkaGeneratePublicationHtml").shouldHaveOutcome(FROM_CACHE)
shouldHaveTask(":dokkaGenerateModuleHtml").shouldHaveOutcome(FROM_CACHE)
}
withClue("only one project is documented, so expect no Dokka module generation") {
shouldNotHaveRunTask(":dokkaGenerateModuleHtml")
}
}
}
Expand Down

0 comments on commit 82774ae

Please sign in to comment.