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). Better is to place it in your tests folder and check it regulary - ensure everything is injected correctly.

in a JUnit test file:

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