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
- java.lang.InstantiationError when using matcher in generic method for package private interface coming from Java
- Suggestion: Recommendations for running parallel tests
- Support nested value classes
- Failed to transform class kotlin/Result - java.lang.StackOverflowError
- how to use mockk to mock BuildConfig.DEBUG
- 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]
- Docs
- Kotlin not yet supported