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
- Matching function arguments that are sealed interfaces results in an IllegalStateException with null packRef
- Still not working well with jdk 21
- Stub not returned when stubbed field is called from a parent reference type of the mocked class
- Partial Mocking not working properly
- Add unit test for #1118
- Support mockking composables
- Version 1.13.13 breaks mocks declared in companion objects
- Mocking nested properties fails after updating to mockk 1.13.13
- ClassCastException when mocking value classes in 1.13.13
- Regression: Kotlin 2 spying on lambdas fails with `NoClassDefFoundError: f/q/ClassName$$Lambda$13/0x000000013131313`
- Docs
- Kotlin not yet supported