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 supported28 Subscribers
View all SubscribersAdd a CodeTriage badge to mockk
Help out
- Issues
- Exception mocking lambdas when running multiple test classes in jdk 11
- Importing io.mockk.* causes significant slow down of compilation
- coVerify throwing method not called when upgrading coroutines
- Constructor mock behaviour change in 1.11.0
- equals calls performed by the library internally are recorded
- When a slot captures multiple functions in coroutines, it always invokes the function that was captured first
- Bug: MockK cannot be used in a project with module-info.java
- Cannot mock Ktor HttpClient calls
- every/verify {} block were run several times with mockkStatic
- ofType() matcher no longer works on kotlin 1.4.20 and mockk 1.10.4 for Function including generics
- Docs
- Kotlin not yet supported