Hello, I'm looking for a way to test my shared lib...
# kotlin-native
a
Hello, I'm looking for a way to test my shared library written in Kotlin native. I read the documentation and other things and it’s not clear to me whether I can still test my code not only in the “commonTest” area? I want to write tests for the "androidNativeArm64Test" and "androidNativeArm32Test" areas separately, is this possible?
n
There’s no built-in test framework for androidNative. Good news is I worked on one: https://github.com/deepmedia/multiplatform-testing . It downloads Android SDK tools if necessary and sets up a headless emulator, then runs a linux executable in it. Bad news is that I haven’t touched it in two years so it likely needs some tweaks now. But you could use the code as reference or try to update it.
👍 1
a
This looks great