https://kotlinlang.org logo
#amper
Title
# amper
c

czuckie

11/09/2023, 9:44 PM
Testing questions in general 🧵
Android specific
test@android
is for android JVM tests, but how do I get connected tests? When using Robolectric you need to add gradle configuration for exposing test resources to jvm tests. What's the analog for amper yaml? Compose desktop When adding the
org.jetbrains.compose.ui:ui-test-junit4:1.4.1
dependency, running a test results in:
java.lang.NoClassDefFoundError: androidx/compose/ui/text/input/TextInputForTests
👀 1
a

Anton Makeev

11/10/2023, 5:03 PM
@czuckie Thanks for reporting, we are looking into this and will get back with suggestion soon
a

Anton Prokhorov

11/10/2023, 5:50 PM
Hello, @czuckie Android specific: We have no analog for amper yaml for this setting yet, however, there is a gradle interop, which allows you to set up
includeAndroidResources
field Compose desktop: I suggest, you use outdated dependency version, please use latest version of dependency:
org.jetbrains.compose.ui:ui-test-junit4:1.5.10
(because we have this version in our built-in compose support)
c

czuckie

11/13/2023, 8:39 AM
Thanks guys
a

Anton Prokhorov

11/14/2023, 5:32 PM
@czuckie have you succeeded in trying amper? Feel free to share any other problems, if you have them
c

czuckie

11/15/2023, 10:12 AM
cheers Anton, I'm going to try and recreate a personal project using it which targets desktop, android and iOS, will let you know if I stumble on anything
🤞 1
2 Views