blob: 0262760d0776e172ee2641fd18659818d6d6ce9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package basic
import org.jetbrains.dokka.DokkaGenerator
import org.jetbrains.dokka.testApi.testRunner.AbstractCoreTest
import org.junit.jupiter.api.Test
import kotlin.test.assertTrue
class AbortGracefullyOnMissingDocumentablesTest: AbstractCoreTest() {
@Test
fun `Generation aborts Gracefully with no Documentables`() {
DokkaGenerator(dokkaConfiguration { }, logger).generate()
assertTrue(
logger.progressMessages.any { message -> "Exiting Generation: Nothing to document" == message },
"Expected graceful exit message. Found: ${logger.progressMessages}"
)
}
}
|