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
- ValueClassSupport boxedProperty.returnType.classifier as KClass<*> throws java.lang.NullPointerException: null cannot be cast to non-null type kotlin.reflect.KClass
- Unclear behavior of flags in "clearAllMocks"
- Crash when running tests in API<31 and "androidx.activity:activity:1.13.0"
- isKotlinInline() crashes with ArrayIndexOutOfBoundsException on Android 12/12L
- # Add telemetry around signature validation
- confirmVerified doesn't support references to top-level functions mocked via mockkStatic
- Idea: one common base interface for all MockK DSLs
- every { java.nio.Files.<method>() } crashes after mockkStatic(java.nio.Files::class)
- Globally enable test flags but disable on specific test classes
- Add reproducer for issue #1410
- Docs
- Kotlin not yet supported