6b409d87f5
This change adds a library with cinterop that has XCTest wrapper around Kotlin/Native tests (that are @kotlin.test.Test marked methods). This library can be compiled with either test code using the option `-produce test_bundle` to make a loadable test bundle or used inside the existing ObjC/Swift tests if compiled to a framework. The basic idea is to make XCTest be able to resolve separate test cases and correctly show them in test reports. This was achieved by wrapping test cases with dynamically created invocation methods. Test listeners are integrated with XCTest Observation to make it possible to have the same ability to report with GTest or TeamCity logging. Gradle build files use MPP Gradle plugin and use a bootstrap version of K/N. Property `kotlin.native.home` was moved to the kotlin-native subproject to not override this project's K/N distribution, that is being used by the KGP with the same property. This is a part of ^KT-58928 Merge-request: KT-MR-13268 Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com>
7 lines
352 B
Properties
7 lines
352 B
Properties
# Disable commonizer. It writes its data to the distribution, that's not desirable during the build
|
|
kotlin.mpp.enableNativeDistributionCommonizationCache=false
|
|
kotlin.mpp.enableCInteropCommonization=false
|
|
kotlin.mpp.enableCInteropCommonization.nowarn=true
|
|
|
|
# No need to do any publishing
|
|
kotlin.internal.mpp.createDefaultMultiplatformPublications=false |