diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-11 11:10:30 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-08-12 09:38:06 +0200 |
commit | 6a7d1c9aedfb12f309a410c404a830cb9d3972d3 (patch) | |
tree | 041efe2004f3adfdc8f029cd294380cf3f393fc4 /testApi/src/main/kotlin | |
parent | aeb2014eee704be377c06205d16f60562d2a8cf1 (diff) | |
download | dokka-6a7d1c9aedfb12f309a410c404a830cb9d3972d3.tar.gz dokka-6a7d1c9aedfb12f309a410c404a830cb9d3972d3.tar.bz2 dokka-6a7d1c9aedfb12f309a410c404a830cb9d3972d3.zip |
Implement DocumentableFilterSuppressedTransformer
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, |