Skip to content

Commit

Permalink
register DOKKA_TEST_OUTPUT_PATH as a test task input, and the dir as …
Browse files Browse the repository at this point in the history
…an output
  • Loading branch information
adam-enko committed Jan 23, 2024
1 parent 14364ea commit 84255e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dokka-integration-tests/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 84255e2

Please sign in to comment.