Use teamcity test logger if the project has a corresponding property

This commit is contained in:
Ilya Matveev
2018-09-06 21:59:49 +07:00
committed by Ilya Matveev
parent cbb1b9fae5
commit f1de88ebbc
@@ -411,6 +411,10 @@ open class KotlinNativeTargetConfigurator(
// TODO: Provide a normal test path!
outputDir = project.layout.buildDirectory.dir("test-results").get().asFile
if (project.hasProperty("teamcity")) {
args("--ktest_logger=TEAMCITY")
}
onlyIf { testExecutableProperty.get().exists() }
inputs.file(testExecutableProperty)
dependsOn(testExecutableLinkTask)