aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-07 11:46:19 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-07 13:31:38 +0200
commitf542ceb8014437a089175eac463e1fbf7cf520fd (patch)
tree39c55f386c5b3b2a23466463ff68fb66458998f1 /integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka
parent03c629b415fd98dea279ce86e11ed1823b504183 (diff)
downloaddokka-f542ceb8014437a089175eac463e1fbf7cf520fd.tar.gz
dokka-f542ceb8014437a089175eac463e1fbf7cf520fd.tar.bz2
dokka-f542ceb8014437a089175eac463e1fbf7cf520fd.zip
CliIntegrationTest: Add assertion for undocumented reports
Diffstat (limited to 'integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka')
-rw-r--r--integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt b/integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt
index 5e24c1cd..49030c73 100644
--- a/integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt
+++ b/integration-tests/cli/src/integrationTest/kotlin/org/jetbrains/dokka/it/cli/CliIntegrationTest.kt
@@ -60,6 +60,13 @@ class CliIntegrationTest : AbstractCliIntegrationTest() {
"Expected more than 10 extensions being present (found $amountOfExtensionsLoaded)"
)
+ val undocumentedReportRegex = Regex("""Undocumented:""")
+ val amountOfUndocumentedReports = undocumentedReportRegex.findAll(result.output).count()
+ assertTrue(
+ amountOfUndocumentedReports > 0,
+ "Expected at least one report of undocumented code (found $amountOfUndocumentedReports)"
+ )
+
assertTrue(dokkaOutputDir.isDirectory, "Missing dokka output directory")
val imagesDir = File(dokkaOutputDir, "images")