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
- Don't unbox primitive value class returned by suspend function
- Cannot mock constructor in instrumented test
- mockkObject/every fails substituting object function call, seems to run method
- Mockk failing when targeting Java 21
- Exception when use 'mockkStatic()' in Java class with mock static function wich has overload
- Regression - Specifying kotlin.time.Duration as return value for `every` leads to ClassCastException
- coVerify verifies wrong method
- Cannot mock kotlin object's get property that returns value class
- Can`t mock private property (Missing mocked calls inside every { ... } block: make sure the object inside the block is a mock)
- Any.get() extension function is colliding with other classes extension function
- Docs
- Kotlin not yet supported