MockK

Android only

6.8No. 11 of 32
in Unit Testing Frameworks
  • Recognised40% of the score6
  • Phone app26% of the score100
  • Documented20% of the score82
  • Free plan14% of the score30
Free plan
No
Runs on
Android

Summary

MockK is ranked #11 of 32 in unit testing frameworks on Samsung Mobile US Press. It runs on Android.

Compared on unit testing frameworks

Supported languages
Kotlinmockk.io
Built-in mocks
Yesmockk.io
Parallel execution
Yesmockk.io

Facts

Purpose
MockK describes itself as a mocking library for Kotlin.mockk.io · 4 Oct 2026
Setup
The site provides Gradle and Maven test dependency examples for MockK.mockk.io · 4 Oct 2026
Mock behavior
Mocks are strict by default and require behavior to be provided.mockk.io · 4 Oct 2026
BDD
Optional BDD-style aliases include given, then, coGiven, and coThen.mockk.io · 4 Oct 2026
Framework support
The site links to SpringMockK and Quarkus-MockK support.mockk.io · 4 Oct 2026
Kotlin compatibility
The site says MockK supports Kotlin 1.4 and higher from version 1.13.0.mockk.io · 4 Oct 2026
Test integrations
The documentation describes JUnit 4 rule support and a JUnit 5 extension.mockk.io · 4 Oct 2026
Coroutines
MockK supports stubbing and verifying suspend functions with coroutine-specific APIs such as coEvery and coVerify.mockk.io · 4 Oct 2026
Mocking features
Documented features include spies, relaxed mocks, partial mocking, object mocks, class mocks, and constructor mocks.mockk.io · 4 Oct 2026
Known limitation
Inline functions cannot be mocked, according to the site's known issues section.mockk.io · 4 Oct 2026
Known issue
The site notes that spies and mockkStatic may fail on JDK 16 and later with access exceptions.mockk.io · 4 Oct 2026
Security-related feature
Restricted Mocking can prevent mocking classes considered problematic for reliable tests, and the documentation lists several Java system and collection classes restricted by default.mockk.io · 4 Oct 2026
Support
The site directs users to Stack Overflow or Gitter for questions and to GitHub for bug reports.mockk.io · 4 Oct 2026
License
The linked public GitHub repository identifies its license as Apache-2.0.github.com · 4 Oct 2026

Best MockK alternatives

See all 12

Where it ranks on Samsung Mobile US Press

Is MockK yours?

Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.

Sources