diff --git a/dokka-integration-tests/gradle/build.gradle.kts b/dokka-integration-tests/gradle/build.gradle.kts index da21becad1..ae4e126af3 100644 --- a/dokka-integration-tests/gradle/build.gradle.kts +++ b/dokka-integration-tests/gradle/build.gradle.kts @@ -173,6 +173,14 @@ fun TestingExtension.registerTestProjectSuite( if (jvm != null) { javaLauncher = javaToolchains.launcherFor { languageVersion = jvm } } + + // For validation on CI the output is uploaded. This requires the test task is not skipped, and + // so Gradle must be told about the output dir. + val testOutputPath = System.getenv("DOKKA_TEST_OUTPUT_PATH") + inputs.property("testOutputPath", testOutputPath) + if (testOutputPath != null) { + outputs.dir(testOutputPath).withPropertyName("testOutput") + } } } configure()