Side by side
MockK vs QUnit
Both stand on unit testing frameworks. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan AndroidLinuxMac+1
MockK offers broad mocking features and Kotlin test integrations at no cost. Its strict defaults and documented JDK and inline-function limitations should be considered when setting up tests.
Visit MockK Free plan AndroidAPIiPhone+5
QUnit covers browser, server, and worker JavaScript testing, with reporting, fixture isolation, and extension options. Check its ESM compatibility requirements against the Node.js and browser versions you use.
Visit QUnitThe facts
| MockK | QUnit | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Android, Linux, Mac, Windows | Android, API, iPhone, Linux, Mac, Self-hosted, Web, Windows |
| Lowest paid plan | Not published | Free or on request |
| Plans published | None | 1 |
| Maker | Not published | Not published |
| Website | mockk.io | qunitjs.com |
| On unit testing frameworks | #21 of 32 | #17 of 32 |
MockK: what it does well
- Free and open source
- Supports coroutine stubbing and verification
- Includes JUnit 4 and JUnit 5 integrations
- Provides many mock types
- Offers Spring and Quarkus integrations
What to know first
- Inline functions cannot be mocked
- Spies may fail on JDK 16 and later
- JDK 21+ may show agent warnings
- Strict mocks require defined behavior
QUnit: what it does well
- Runs in browsers, Node.js, SpiderMonkey, and Web Workers.
- Browser releases have no runtime dependencies.
- Resets DOM fixtures after each test.
- Supports plugins and custom assertions.
- Browser runner can rerun selected tests or modules.
What to know first
- QUnit 3 ESM requires Node.js 18+.
- ESM browser support lists minimum browser versions.
- Project work is done by volunteers.

