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
- Feature: mocking native methods alike System.currentTimeMillis()
- Bug: Mocking method that returns coroutine Job fails in android instrumentation test
- Bug: cannot Mock Class With Package-Private Parent
- Bug: AbstractMethodError sometimes when mocking Deferred
- Bug: Can't mock kotlinx.coroutines.channels.Channel
- Bug: JUnit 5 Annotations - Not Working with LiveData / Parameterized Tests
- Bug: calling method on spy of class with generic base class can cause stackoverflow
- Bug: NullPointerException while mocking NavController on instrumentation tests
- Bug: ClassCastException when using relaxed mock of generic type
- Bug: StackOverflowError when mocking ArrayList on Android 9
- Docs
- Kotlin not yet supported