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>
37 lines
1.4 KiB
Properties
37 lines
1.4 KiB
Properties
#
|
|
# Copyright 2010-2019 JetBrains s.r.o.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
# A version of the Kotlin compiler that is used to build Kotlin/Native.
|
|
remoteRoot=konan_tests
|
|
|
|
# A version of Xcode required to build the Kotlin/Native compiler.
|
|
xcodeMajorVersion=15
|
|
|
|
# A GTest revision used to test the runtime.
|
|
# The latest release GTest (1.10.0) doesn't properly register skipped tests in an XML-report.
|
|
# Therefore we use a fixed commit form the master branch where this problem is already fixed.
|
|
# https://github.com/google/googletest/commit/07f4869221012b16b7f9ee685d94856e1fc9f361
|
|
gtestRevision=07f4869221012b16b7f9ee685d94856e1fc9f361
|
|
|
|
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
|
org.gradle.workers.max=4
|
|
slackApiVersion=1.2.0
|
|
ktorVersion=1.2.1
|
|
shadowVersion=8.1.1
|
|
metadataVersion=0.0.1-dev-10
|
|
|
|
# Default location of dist dir relative to the root project
|
|
kotlin.native.home=kotlin-native/dist |