By looking at `mvikotlin:sample` application I had...
# mvikotlin
a
By looking at
mvikotlin:sample
application I had an assumption that tests are working on iOS as well. When cloning repository I found that tests are enabled only for android and js targets. What would it take to get the same tests running for iOS target as well?
a
Hi, tests should work for all targets including iOS. Why do you think iOS tests are not working?
a
message has been deleted
They can’t be executed from IDE.
a
Perhaps it is an IDE bug, there should be corresponding Gradle tasks, could you try running it?
a
can’t see iosTest task
a
Are you on MacOS?
a
yes
a
Alright, I forgot that
todo-coroutines
module has only Android and JS targets enabled.
Because iOS app only uses reaktive version of the shared sample code
a
then probably this test implementation won’t work on iOS with coroutines
a
What test implementation?
kind of this way, by just dispatching intern on store and after that already asserting the result on store state
a
Since the iOS target is not enabled for
todo-coroutines
module, it can no be even compiled against iOS currently. You can try enabling the iOS target here, but you will need to use
native-mt
version of the coroutines.
Because the sample uses SQLDelight and it should be accessed on background thread.
a
enabled them and they actually ran fine, thanks
👍 1
a
Thanks for the feedback, I will consider enabling it.