Tech riderRev. 21 Sept 2026
- 1Runs onAndroid
- 2CostsNot stated by the maker
- 3Supported languagesKotlin
- 4Built-in mocksYes
- 5Parallel executionYes
4 lines stated Written from the maker's own pages: mockk.io

Overview
MockK is ranked #12 of 32 in unit testing frameworks on Specifiction. It runs on Android.
Compared on unit testing frameworks
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 All accessCh 01 Kotest Free planAndroidiOS Free to start7.6 All accessCh 02 Vitest Free planLinuxMac Free to start7.5 All accessCh 03 NUnit Free planAndroidAPI Free to start7.4 All accessCh 04 PHPUnit Free planLinuxMac Free to start7.3 All accessCh 05 GoogleTest Free planLinuxMac Free to start7.1 All accessCh 06 xUnit.net Free planLinuxMac Free to start7.1
Where it ranks on Specifiction
- Best Unit Testing Frameworks in 2026#12 of 32
Is MockK yours?
Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.
Sources
- mockk.io· checked 4 Oct 2026
- github.com/mockk/mockk· checked 4 Oct 2026




