Closed iliaskomp closed 4 years ago
You are not quite using the checkModules
function correctly. A full example with parameter-dependent dependencies can be seen in the Koin tests: https://github.com/InsertKoinIO/koin/blob/master/koin-projects/koin-test/src/test/kotlin/org/koin/test/CheckModulesTest.kt#L156
Thank you, that works! I am closing the issue.
Koin project used and used version: Android project org.koin:koin-android:2.1.5
Describe the bug Below I have a factory of Completable which needs a string parameter. The TestClass dependency has a dependency on Completable and passes a "default" string.
While it seems on runtime to work correctly (no crashes), when I run the checkModules {} function there is an error.
checkModules {} test
Error
If I remove the string parameter, the test passes successfully.
I don't see any issue with the usage of the parameters or checkModules { } functionality. Could there be an issue with checkModules {}. Is there some solution in order to make the test pass?