From be3fea152ae5dcec5ba9a29d86a69010d6b2e428 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Tue, 8 Sep 2020 12:10:59 +0200 Subject: Adding configuration mpp check for javadoc --- .../test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt | 4 ++++ core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt | 3 +++ 2 files changed, 7 insertions(+) (limited to 'core/test-api/src/main/kotlin') diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt b/core/test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt index 414919dc..98f8965c 100644 --- a/core/test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt +++ b/core/test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt @@ -19,6 +19,10 @@ internal class DokkaTestGenerator( dokkaGenerator.initializePlugins(configuration, logger, additionalPlugins) pluginsSetupStage(context) + verificationStage { + dokkaGenerator.validityCheck(context) + } + val modulesFromPlatforms = dokkaGenerator.createDocumentationModels(context) documentablesCreationStage(modulesFromPlatforms) diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt b/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt index db253a9d..0b3068fc 100644 --- a/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt +++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt @@ -140,6 +140,7 @@ abstract class AbstractCoreTest( protected class TestBuilder { var pluginsSetupStage: (DokkaContext) -> Unit = {} + var verificationStage: (() -> Unit) -> Unit = {} var documentablesCreationStage: (List) -> Unit = {} var documentablesFirstTransformationStep: (List) -> Unit = {} var documentablesMergingStage: (DModule) -> Unit = {} @@ -151,6 +152,7 @@ abstract class AbstractCoreTest( @PublishedApi internal fun build() = TestMethods( pluginsSetupStage, + verificationStage, documentablesCreationStage, documentablesFirstTransformationStep, documentablesMergingStage, @@ -193,6 +195,7 @@ abstract class AbstractCoreTest( data class TestMethods( val pluginsSetupStage: (DokkaContext) -> Unit, + val verificationStage: (() -> Unit) -> Unit, val documentablesCreationStage: (List) -> Unit, val documentablesFirstTransformationStep: (List) -> Unit, val documentablesMergingStage: (DModule) -> Unit, -- cgit