Need advice about which tool to choose?Ask the StackShare community!

Mockito

1.1K
147
+ 1
0
mockk

26
14
+ 1
0
Add tool

mockk vs Mockito: What are the differences?

What is mockk? Mocking library for Kotlin. It is an open-source library focused on making mocking in Kotlin great. It is a library with the possibility of mocking default arguments, final classes, varargs, coroutines and extension methods.

What is Mockito? Tasty mocking framework for unit tests in Java. It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

mockk and Mockito can be categorized as "Testing Frameworks" tools.

Mockito is an open source tool with 10.2K GitHub stars and 1.81K GitHub forks. Here's a link to Mockito's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More

What is Mockito?

It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

What is mockk?

It is an open-source library focused on making mocking in Kotlin great. It is a library with the possibility of mocking default arguments, final classes, varargs, coroutines and extension methods.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention Mockito and mockk as a desired skillset
CBRE
United Kingdom of Great Britain and Northern Ireland England London
CBRE
United Kingdom of Great Britain and Northern Ireland England London
What companies use Mockito?
What companies use mockk?
See which teams inside your own company are using Mockito or mockk.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Mockito?
What tools integrate with mockk?
What are some alternatives to Mockito and mockk?
JUnit
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Appium
Appium is an open source test automation framework for use with native, hybrid, and mobile web apps. It drives iOS and Android apps using the WebDriver protocol. Appium is sponsored by Sauce Labs and a thriving community of open source developers.
Robolectric
It is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM on your workstation in seconds. Test drive your Android application with robolectric
pytest
A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.
RSpec
Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
See all alternatives