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
sebastien.rouif
09/11/2020, 10:44 AM
what kind of tests are you running ? instrumented test on Android ?
n
nikolaymetchev
09/11/2020, 11:25 AM
No, Junit tests on JVM.
m
Matt Thompson
09/14/2020, 11:11 PM
I’ve fixed some CI test flakes by wrapping koin init/teardown in a synchronized block and using