Use teamcity test logger if the project has a corresponding property
This commit is contained in:
committed by
Ilya Matveev
parent
cbb1b9fae5
commit
f1de88ebbc
+4
@@ -411,6 +411,10 @@ open class KotlinNativeTargetConfigurator(
|
|||||||
// TODO: Provide a normal test path!
|
// TODO: Provide a normal test path!
|
||||||
outputDir = project.layout.buildDirectory.dir("test-results").get().asFile
|
outputDir = project.layout.buildDirectory.dir("test-results").get().asFile
|
||||||
|
|
||||||
|
if (project.hasProperty("teamcity")) {
|
||||||
|
args("--ktest_logger=TEAMCITY")
|
||||||
|
}
|
||||||
|
|
||||||
onlyIf { testExecutableProperty.get().exists() }
|
onlyIf { testExecutableProperty.get().exists() }
|
||||||
inputs.file(testExecutableProperty)
|
inputs.file(testExecutableProperty)
|
||||||
dependsOn(testExecutableLinkTask)
|
dependsOn(testExecutableLinkTask)
|
||||||
|
|||||||
Reference in New Issue
Block a user