[gradle-plugin] Use main targets in the test component by default
This commit is contained in:
committed by
Ilya Matveev
parent
94e6c2a514
commit
a91f91bc65
+1
@@ -41,6 +41,7 @@ open class KotlinNativeTestSuite @Inject constructor(
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
getImplementationDependencies().extendsFrom(testedComponent.getImplementationDependencies())
|
getImplementationDependencies().extendsFrom(testedComponent.getImplementationDependencies())
|
||||||
|
konanTargets.set(project.provider { testedComponent.konanTargets.get() })
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getDisplayName(): DisplayName = Describables.withTypeAndName("Kotlin/Native test suite", name)
|
override fun getDisplayName(): DisplayName = Describables.withTypeAndName("Kotlin/Native test suite", name)
|
||||||
|
|||||||
+5
-3
@@ -175,9 +175,11 @@ class KotlinNativePlugin @Inject constructor(val attributesFactory: ImmutableAtt
|
|||||||
objects
|
objects
|
||||||
)
|
)
|
||||||
|
|
||||||
val binary = component.addTestExecutable(variantIdentity)
|
if (hostManager.isEnabled(target)) {
|
||||||
if (target == HostManager.host) {
|
val binary = component.addTestExecutable(variantIdentity)
|
||||||
component.testBinary.set(binary)
|
if (target == HostManager.host) {
|
||||||
|
component.testBinary.set(binary)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
component.binaries.realizeNow()
|
component.binaries.realizeNow()
|
||||||
|
|||||||
Reference in New Issue
Block a user