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
- Is it possible to test or capture arguments in mocked constructor?
- any() doesn't work for kotlin.Unit
- Mockk produces incorrect bytecode when running with coverage
- Bug:fail to mock anyConstructed().extensionFunc(), it execute the real code.
- Can not get private field from Object
- Support Spying and Mocking HashMaps on JDK 16+
- java.lang.InstantiationError when using matcher in generic method for package private interface coming from Java
- Support nested value classes
- Failed to transform class kotlin/Result - java.lang.StackOverflowError
- how to use mockk to mock BuildConfig.DEBUG
- Docs
- Kotlin not yet supported