Hey guys, I’m writing a functional tests in ktor. ...
# koin
k
Hey guys, I’m writing a functional tests in ktor. One of the suites works absolutely fine and the other one fails to start when `
Copy code
withTestApplication({ module() }) {
is executed. The error is:
No definition found for class:'com.alpha.CoolService'. Check your definitions!
org.koin.core.error.NoBeanDefFoundException
The bean is definitely there. As I mentioned it works fine in the other test suite. When I stopped there with the debugger there were no beans to be found indeed.
CoolService
is just the first been that I try to retrieve with
get()
. It seems that the context is somehow screwed up. Could it be that the separate ktor test suites are messing up each others Koin contexts?
a
can you extract a sample with that?
k
I’ll try 🙂 Thanks for the reply