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?
10/02/2023, 9:27 AM
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.