diff options
Diffstat (limited to 'testApi/src/main/kotlin')
-rw-r--r-- | testApi/src/main/kotlin/testApi/testRunner/TestRunner.kt | 13 |
1 files changed, 10 insertions, 3 deletions
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, |