Dry run your configuration

Testing your Koin modules as simple as running as JUnit test

Koin is an internal DSL: all your modules evolves directly with your code (if you change a component, it will also impact your modules).

You can check your modules with KoinTest.dryRun() (launch all your modules and try to inject each component).

Good practice would be to place it in your tests folder and check it regularly - ensure everything is injected correctly.

in a JUnit test file:

class MyTest : KoinTest {
	fun dryRun(){
	     // start Koin
	     startKoin(/* list of modules */)
	     // dry run of given module list