Relative Content

Tag Archive for kotlintestingktorkoin

Replacing Koin declarations for Ktor Applications

I’m trying to write a REST-API using Ktor and Koin.
I already wrote the authentication part, but when I wonted to test it I couldn’t
get Koin to replace the user repository implementation, my Ktor app is using.
I know Koin has a section on there web side for Koin in tests and I also know that there have been
similar questions on stack overflow (see my research section below), but I just
couldn’t make it work although, I tried several things already. Now I’m confused and don’t know what to do.