Enable forwarding successful Gradle test output on demand.
^KT-45744 In Progress
This commit is contained in:
committed by
TeamCityServer
parent
5b218bdad2
commit
7ffdafe791
+4
@@ -25,6 +25,7 @@ fun KGPBaseTest.project(
|
||||
projectName: String,
|
||||
gradleVersion: GradleVersion,
|
||||
buildOptions: KGPBaseTest.BuildOptions = defaultBuildOptions,
|
||||
forceOutput: Boolean = false,
|
||||
test: TestProject.() -> Unit
|
||||
): TestProject {
|
||||
val projectPath = setupProjectFromTestResources(
|
||||
@@ -39,6 +40,9 @@ fun KGPBaseTest.project(
|
||||
.withProjectDir(projectPath.toFile())
|
||||
.withTestKitDir(Paths.get(".").testKitDir.toAbsolutePath().toFile())
|
||||
.withGradleVersion(gradleVersion.version)
|
||||
.also {
|
||||
if (forceOutput) it.forwardOutput()
|
||||
}
|
||||
|
||||
val testProject = TestProject(
|
||||
gradleRunner,
|
||||
|
||||
Reference in New Issue
Block a user