Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: android test naming in the new layout #3762

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading