diff options
Diffstat (limited to 'core/test-api/src')
-rw-r--r-- | core/test-api/src/main/kotlin/testApi/testRunner/DokkaTestGenerator.kt | 4 | ||||
-rw-r--r-- | core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt | 3 |
2 files changed, 7 insertions, 0 deletions
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<DModule>) -> Unit = {} var documentablesFirstTransformationStep: (List<DModule>) -> 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<DModule>) -> Unit, val documentablesFirstTransformationStep: (List<DModule>) -> Unit, val documentablesMergingStage: (DModule) -> Unit, |