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
- Using the result of callOriginal() inside coAnswers throws a fatal exception when the original contains a call to delay
- finalize function not generated or mocked
- Allow to copy an existing mock
- Add java overloads
- Provide better java interop
- Incompatibility between Kotlin 1.7.xx and mockk after updating to 1.13.8
- 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
- Docs
- Kotlin not yet supported