Skip to content

Commit 6df509f

Browse files
authored
Stabilize UI Test library for Desktop (#3518)
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`
1 parent ebc3d5b commit 6df509f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ abstract class ComposePlugin : Plugin<Project> {
106106
val runtime get() = composeDependency("org.jetbrains.compose.runtime:runtime")
107107
val runtimeSaveable get() = composeDependency("org.jetbrains.compose.runtime:runtime-saveable")
108108
val ui get() = composeDependency("org.jetbrains.compose.ui:ui")
109+
@Deprecated("Use desktop.uiTestJUnit4", replaceWith = ReplaceWith("desktop.uiTestJUnit4"))
109110
@ExperimentalComposeLibrary
110111
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
111112
val uiTooling get() = composeDependency("org.jetbrains.compose.ui:ui-tooling")
@@ -127,6 +128,8 @@ abstract class ComposePlugin : Plugin<Project> {
127128
val macos_x64 = composeDependency("org.jetbrains.compose.desktop:desktop-jvm-macos-x64")
128129
val macos_arm64 = composeDependency("org.jetbrains.compose.desktop:desktop-jvm-macos-arm64")
129130

131+
val uiTestJUnit4 get() = composeDependency("org.jetbrains.compose.ui:ui-test-junit4")
132+
130133
val currentOs by lazy {
131134
composeDependency("org.jetbrains.compose.desktop:desktop-jvm-${currentTarget.id}")
132135
}

0 commit comments

Comments
 (0)