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
- Exception occurs using nested mocks (`Failed matching mocking signature for`)
- Verification failed: [...] Only one matching call [...] happened, but arguments are not matching
- Can't instantiate proxy for class kotlin.Function2 - similar class definition
- Implement first class support for context receivers
- add test reports to GitHub actions
- Relaxed mock returns a mocked `Optional`
- StackOverflowException when mocking an interface with a generic parameter and suspend functions
- Nested enum class overriding toString() throws UnsupportedOperationException : class redefinition failed
- Exceptions are swallowed when running tests within Maven
- Mocking lambda that returns Nothing throws KotlinNothingValueException
- Docs
- Kotlin not yet supported