From 6a7d1c9aedfb12f309a410c404a830cb9d3972d3 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Tue, 11 Aug 2020 11:10:30 +0200 Subject: Implement DocumentableFilterSuppressedTransformer --- testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'testApi/src/main/kotlin') diff --git a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt index 2d79e7e5..25b6b6f2 100644 --- a/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt +++ b/testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt @@ -63,9 +63,16 @@ abstract class AbstractCoreTest { val newConfiguration = configuration.copy( outputDir = testDirPath.toAbsolutePath().toString(), - sourceSets = configuration.sourceSets.map { - it.copy(sourceRoots = it.sourceRoots.map { it.copy(path = "${testDirPath.toAbsolutePath()}/${it.path}") }) - } + sourceSets = configuration.sourceSets.map { sourceSet -> + sourceSet.copy( + sourceRoots = sourceSet.sourceRoots.map { sourceRoot -> + sourceRoot.copy(path = "${testDirPath.toAbsolutePath()}/${sourceRoot.path}") + }, + suppressedFiles = sourceSet.suppressedFiles.map { suppressedFile -> + testDirPath.toAbsolutePath().toFile().resolve(suppressedFile).absolutePath + } + ) + }, ) DokkaTestGenerator( newConfiguration, -- cgit