Andreas Sinz
08/22/2017, 12:11 PMKodein.global
for all of your tests. So if you run tests in parallel, your init
will be called in parallel and thus you access Kodein.global
in parallel. That can lead to some nasty bugs. I'd argue that you should create an instance of Kodein
inside your MyApplication
and create a MyAplication
for every test you run