Skip to content

Commit

Permalink
update: android test naming in the new layout (#3762)
Browse files Browse the repository at this point in the history
* update: new android layout
* Update to the latest Android SourceSet (#3743)

---------

Co-authored-by: Qinglin <[email protected]>
  • Loading branch information
danil-pavlov and nodmp committed Oct 17, 2023
1 parent 5dad290 commit e889a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -178,7 +178,7 @@ kotlin {
implementation(kotlin("test"))
}
}
val androidTest by getting
val androidUnitTest by getting
val iosTest by getting
}

Expand All @@ -198,7 +198,7 @@ kotlin {
implementation kotlin('test')
}
}
androidTest {
androidUnitTest {
}
iosTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit e889a49

Please sign in to comment.