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
- any() doesn't work for value classes
- MockK fails to stub generic interface with methods with close signatures
- Verification failed: call 1 of 2: Router(mockRouter#172).xyz) was not called java.lang.AssertionError: Verification failed: call 1 of 2: Router(mockRouter#172).xyz) was not called
- Missing mocked calls inside every { ... } block: make sure the object inside the block is a mock
- KotlinNothingValueException thrown when collecting mockked flow [Kotlin 1.6]
- NPE when trying to access firstArg() and args[0] on mocked extension function
- Adding a mocked function to a list fails verify exactly = 0 check
- isMockKMock() returns true for final class it was unable to mock
- @SpyK on java.time.Clock fails on Java 17
- Duplicate class io.mockk.ValueClassSupportKt
- Docs
- Kotlin not yet supported