When executing iOS unit tests via gradle, one has ...
# multiplatform
t
When executing iOS unit tests via gradle, one has to explicitly specify the architecture by executing either
iosX64Test
or
iosSimulatorArm64Test
(depending on the JDK installation). How do you run iOS unit tests via gradle that are automatically executed with the correct architecture but without explicitly specifying?
l
Running the check task will run the iOS tests as well if possible. I haven’t checked, but I think if you run
gradlew iosX64Test iosSimulatorArm64Test
it should try to run both and skip the one it can’t run.
t
yes this works fine. the problem is that it's slowing down the execution time of the tests as it always tries to run on multiple architectures.