Mockk is a mocking library for ๐งโ๐ป๏ธ Kotlin.
Tips and tricks
- Use
relaxUnitFun = trueinstead ofrelaxed = trueto require all mocks to be defined checkUnnecessaryStubto validate that all stub definitions have been called in the code- Annotate with
@MockKExtension.CheckUnnecessaryStub(documentation)
- Annotate with