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
- Please provide alias for "isNull(true)"
- Method `every { ... }` doesn't mock, but calls the real method (in case of overloaded methods)
- Upgrade to jdk 17 fails mockk with "Can't instantiate proxy for class org.w3c.dom.Document"
- any<SpecificType>() matcher ignores the concrete type and matches all types
- Can not assert the dispatcher on which a mock was called
- Duplicate boxing of captured value class arguments
- Allow suppressing "Failed to set backing field" OR fail test
- `verify` throws with supper class methods since version 1.13.11
- `unmockkAll` cannot clear all mocked classes.
- Spyk recordPrivateMethods does not work properly on kotlin init function
- Docs
- Kotlin not yet supported