Hello, I am trying to parallelize our unit tests. ...
# koin
n
Hello, I am trying to parallelize our unit tests. I am finding that koin is not really designed to be run in a multi-threaded environment. We want to run tests in parallel and each test needs to create it’s own instance of the application and tear it down at the end of each test. Is there any examples of anyone doing this?
s
what kind of tests are you running ? instrumented test on Android ?
n
No, Junit tests on JVM.
m
I’ve fixed some CI test flakes by wrapping koin init/teardown in a synchronized block and using
KoinContextHandler
as the lock