Hey, I find that when I execute tests in `commonTe...
# multiplatform
j
Hey, I find that when I execute tests in
commonTest
, build of Android source is performed with
compileDebugKotlinAndroid
etc. when selecting 'Android' as the execution platform. Is there a reason for this? As far as I understand, code in
commonTest
doesn't need
androidDebug
or
androidMain
. Is it possible to eliminate Android source compilation in this case?
a
Apparently not, because commonMain is abstract, and then running is concrete, and it needs to know on which concretion to run, jvm or native.
s
^^^ Alexandru's answer.
commonMain
is not a run target. The tests there are run as part of concrete targets that can be run, such as android, ios, etc.