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
- 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
- Mockk eats memory until it crashes if mocked Exception "escapes"
- Unable to mock JvmSynthetic function
- "Class cast exception happened" when using verify on a generic class structure
- Docs
- Kotlin not yet supported