From e889a49c588bcf4509a5f89c6d7fe1c63aada208 Mon Sep 17 00:00:00 2001 From: Danil Pavlov Date: Wed, 30 Aug 2023 15:30:40 +0200 Subject: [PATCH] update: android test naming in the new layout (#3762) * update: new android layout * Update to the latest Android SourceSet (#3743) --------- Co-authored-by: Qinglin --- .../multiplatform-mobile-understand-project-structure.md | 6 +++--- .../multiplatform/multiplatform-share-on-platforms.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md b/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md index 587795690ba..1b3cda4d5ab 100644 --- a/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md +++ b/docs/topics/multiplatform-mobile/multiplatform-mobile-understand-project-structure.md @@ -159,7 +159,7 @@ Read [Multiplatform documentation on adding dependencies](multiplatform-add-depe Along with `*Main` source sets, there are three matching test source sets: * `commonTest` -* `androidTest` +* `androidUnitTest` * `iosTest` Use them to store unit tests for common and platform-specific source sets accordingly. @@ -178,7 +178,7 @@ kotlin { implementation(kotlin("test")) } } - val androidTest by getting + val androidUnitTest by getting val iosTest by getting } @@ -198,7 +198,7 @@ kotlin { implementation kotlin('test') } } - androidTest { + androidUnitTest { } iosTest { diff --git a/docs/topics/multiplatform/multiplatform-share-on-platforms.md b/docs/topics/multiplatform/multiplatform-share-on-platforms.md index ae1dd4ac83b..b17c62c05e8 100644 --- a/docs/topics/multiplatform/multiplatform-share-on-platforms.md +++ b/docs/topics/multiplatform/multiplatform-share-on-platforms.md @@ -19,7 +19,7 @@ just share it in the common source set. Some dependencies for source sets are set by default. You don't need to specify any `dependsOn` relations manually: * For all platform-specific source sets that depend on the common source set, such as `jvmMain`, `macosX64Main`, and others. -* Between the `main` and `test` source sets of a particular target, such as `androidMain` and `androidTest`. +* Between the `main` and `test` source sets of a particular target, such as `androidMain` and `androidUnitTest`. If you need to access platform-specific APIs from the shared code, use the Kotlin mechanism of [expected and actual declarations](multiplatform-connect-to-apis.md).