Hi Is there a way to override an install Plugin (f...
# ktor
j
Hi Is there a way to override an install Plugin (formerly known as Features 🙂 ) in the tests ? More specifically I would like to override Koin installation Thanks
a
Could you please share a code example to better understand your problem?
j
There is this ktor-multimodule example in the Koin repo: https://github.com/InsertKoinIO/koin/tree/master/examples/multimodule-ktor Here is the test file: https://github.com/InsertKoinIO/koin/blob/master/examples/multimodule-ktor/app/src/test/kotlin/org/koin/samples/multi_module/app/ApplicationTest.kt In the example there are 2 Koin modules that are loaded with the Ktor install feature. They are both loaded and since we have multiple Koin modules. In our case we would like to avoid loading the modules in the test since some of them start async tasks. Even with Koin override modules all the modules and their component are created and this is something we want to avoid in the test - so I though maybe there is an option to make the test skip installing the koin plugin
a
I suggest asking this question in the #koin channel.
j
oh thanks I asked it in the #koin-dev but did not get an answer probably because it was not the right place… my bad 10x again