mockk
https://github.com/mockk/mockk
Kotlin
mocking library for Kotlin
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Kotlin not yet supported34 Subscribers
View all SubscribersAdd a CodeTriage badge to mockk
Help out
- Issues
- Incompatible with Kotlin 1.9.20 in KMP project
- Caused by: java.lang.RuntimeException: Method isLoggable in android.util.Log not mocked.
- value class that implements interface or sealed interface cannot be used in `returns`
- Allow relaxing a mock and some of its methods after it is initialized
- dynamically loaded agent warning (JEP-451)
- Verify with timeout not working after version 1.13.7
- Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
- CI unit tests slow and/or skipped
- Is there a way to mock private properties with fields
- Exception when mocking an interface having a method with generic value class
- Docs
- Kotlin not yet supported