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 supported29 Subscribers
View all SubscribersAdd a CodeTriage badge to mockk![CodeTriage badge for mockk/mockk](/mockk/mockk/badges/users.svg?count=29)
Help out
- Issues
- Spy Object Returns Unexpected Default Value Instead of Real Property
- `registerInstanceFactory` supplier is not used for value classes
- Support Kotlin 1.9.20's enums with mockkObject
- Test passes when compiled for JDK target 19, but fails when compiled for JDK target 21
- mockkStatic(System::class) causes java.lang.StackOverflowError with java 17
- Issue with interface mock and reflection
- MockKException: Failing to instantiate mocks for functions
- Spyk on object class
- when mocking a method object is being instantiated and method is called
- fix atMost + timeout verify
- Docs
- Kotlin not yet supported