Testing questions in general :thread:
# amper
c
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
@czuckie Thanks for reporting, we are looking into this and will get back with suggestion soon
a
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
Thanks guys
a
@czuckie have you succeeded in trying amper? Feel free to share any other problems, if you have them
c
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