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.
mockk is a tool in the Testing Frameworks category of a tech stack.
mockk is an open source tool with 3.7K GitHub stars and 159 GitHub forks. Here’s a link to mockk's open source repository on GitHub
Who uses mockk?
Companies
Developers
8 developers on StackShare have stated that they use mockk.
mockk Integrations
mockk's Features
- Object mocks
- Static mocks
- Constructor mocks
- Partial argument matching
- Mocking default arguments
- Mocking final classes
- Mocking varargs
- Hierarchical mocking
mockk Alternatives & Comparisons
What are some alternatives to mockk?
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.
JUnit
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Cucumber
Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
PHPUnit
PHPUnit is a programmer-oriented testing framework for PHP.
It is an instance of the xUnit architecture for unit testing frameworks.
RSpec
Behaviour Driven
Development for Ruby.
Making TDD Productive and Fun.