The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more โ
Mockk Alternatives
Similar projects and alternatives to mockk
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Kotest
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
kotlin-logging
Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade.
-
jackson-module-kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
-
kotlintest
Discontinued Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing [Moved to: https://github.com/kotest/kotest]
-
mockative
Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
mockk reviews and mentions
-
For those DAO, Services, how about using static objects with mockk for test
The official suggests using dagger/hilt to inject them. However, they could be static based on the static ApplicationContext. Although Dagger/hilt aids in unit testing, mockk can accomplish this easily as well by modifying bytecode during run time. As for the stability, `mockk` has 5000+ stars on GitHub and keeps renewing.
-
Tests Everywhere - Kotlin
We can create it as a class as MockK is able to mock final classes.
-
๐งช **Demystifying Kotlin Unit Testing**: Your Odyssey to Code Confidence! ๐
Mockk Documentation
-
Best practices for Unit Testing Android Apps with Mockk, Kotest and others
Mockk is a rather new framework; it was originally designed for Kotlin, although it supports Java as well. Before mockito-kotlin was released, using Mockk was much easier and beneficial for Kotlin developers, but right now both these frameworks have nearly the same set of features and similar syntax. For example, assume that our function loadUsers is no longer synchronous, but rather suspended:
-
LocalDateTime.now() mockk
You can use mockkStatic for that, see docs. Also don't forget to unmockkStatic afterwards.
-
reflective-mockk: Stub methods programmatically using kotlin-reflect
WARNING: reflective-mockk is currently powered by a reflective โhackโ on mockK, and is thereby subject to removal/breakage by the mockK team at any time. If you enjoy this library & want it to be officially supported, post a comment saying so on this PR: https://github.com/mockk/mockk/pull/1005.
-
mockk VS mockative - a user suggested alternative
2 projects | 9 Nov 2022
- Are there any plans to make a better build system for Kotlin than Gradle?
-
Spring with java vs Spring with kotlin
https://mockk.io/ is great, too.
-
From Java to Kotlin. There and back again
Mockito does not work correctly with Kotlin types out of the box. Spring recommends using Mockk. There is also a special module for Mockito, which adds support for Kotlin - Mockito-Kotlin.
-
A note from our sponsor - WorkOS
workos.com | 22 Apr 2024
Stats
mockk/mockk is an open source project licensed under Apache License 2.0 which is an OSI approved license.
The primary programming language of mockk is Kotlin.
Sponsored