Skip to content

Commit

Permalink
Stabilize UI Test library for Desktop (#3518)
Browse files Browse the repository at this point in the history
For iOS/Web it will be stabilized with stabilizing these targets themselves. Also, we should expose uiTest for them, not uiTestJUnit4

JUnit5 support will be provided in the future in [this issue](#2371)

## API Changes

- Testing framework is stabilized for Desktop
- `compose.uiTestJUnit4` is renamed to `compose.desktop.uiTestJUnit4`
  • Loading branch information
igordmn committed Aug 17, 2023
1 parent 86c3a53 commit 5eda586
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ abstract class ComposePlugin : Plugin<Project> {
val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime")
val runtimeSaveable get() = composeDependency("org.jetbrains.compose.runtime:runtime-saveable")
val ui get() = composeDependency("org.jetbrains.compose.ui:ui")
@Deprecated("Use desktop.uiTestJUnit4", replaceWith = ReplaceWith("desktop.uiTestJUnit4"))
@ExperimentalComposeLibrary
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling")
Expand All @@ -127,6 +128,8 @@ abstract class ComposePlugin : Plugin<Project> {
val macos_x64 = composeDependency("org.jetbrains.compose.desktop:desktop-jvm-macos-x64")
val macos_arm64 = composeDependency("org.jetbrains.compose.desktop:desktop-jvm-macos-arm64")

val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")

val currentOs by lazy {
composeDependency("org.jetbrains.compose.desktop:desktop-jvm-${currentTarget.id}")
}
Expand Down

0 comments on commit 5eda586

Please sign in to comment.