MockK

MockK

MockK is a powerful unit testing software designed for Kotlin, simplifying the mocking process with its intuitive API. It supports strict mocks, annotations for easier object creation, and various features for verifying method calls. Version 1.13.0 and above enhances compatibility with Kotlin 1.4+, ensuring a smooth testing experience.

Top MockK Alternatives

1

xUnit.net

xUnit.net is a versatile unit testing framework designed for the .NET ecosystem, supporting C#, F#, and VB.NET.

2

Jasmine

Jasmine is a testing framework that adheres to semantic versioning, designating major releases for substantial changes while most updates are minor.

By: Ventas
3

Puppeteer

Puppeteer is a powerful JavaScript library that provides a high-level API for controlling Chrome or Firefox via the DevTools Protocol or WebDriver BiDi.

4

JMockit

JMockit is a powerful testing toolkit that simplifies Java unit testing with its streamlined APIs.

By: Ventas
5

PHPUnit

PHPUnit is a robust testing framework tailored for PHP developers, embodying the xUnit architecture for unit testing.

6

NUnit

NUnit serves as a robust unit-testing framework tailored for all .NET languages.

By: .NET Foundation
7

Mockito

It enhances test accuracy by generating clear verification errors, minimizing confusion...

8

JUnit

It emphasizes compatibility with Java 8 and above while offering versatile testing styles...

By: JUnit
9

Diffblue Cover

Utilizing reinforcement learning, it ensures generated tests are reliable and maintainable, significantly enhancing code coverage...

By: Diffblue From United Kingdom
10

Cantata

It streamlines compliance with dynamic testing standards by automating test script generation, execution, and diagnostics...

By: QA Systems From Germany
11

dbForge Unit Test

Leveraging the open-source tSQLt framework, it empowers users to write unit tests in standard T-SQL...

By: Devart From Czech Republic
12

CodeBeaver

By understanding code and comments, it distinguishes between outdated tests and genuine issues...

By: CodeBeaver From Italy
13

Telerik JustMock

It seamlessly integrates with popular unit testing frameworks, enabling users to mock non-virtual methods, static...

By: Progress Telerik From United States
14

Nova AI

It eliminates unnecessary scenarios, allowing developers to focus on what matters...

By: Nova AI From United States
15

unittest

It supports automated testing, allowing code reuse for setup and teardown, and enables tests to...

By: Python From United States

Top MockK Features

  • Dependency-based setup
  • Strict mock behavior
  • Annotation-based mock creation
  • Private property injection
  • Constructor selection priority
  • Automated mock lifecycle management
  • Parallel testing support
  • Unnecessary stubbing verification
  • Mixed mocks and real objects
  • Relaxed mock functionality
  • Support for coroutines testing
  • Custom matchers creation
  • Scoped mock automation
  • Restricted mocking configuration
  • Capturing argument slots
  • Mocking top-level functions
  • Extension function mocking
  • Dynamic private function mocking
  • Global parameter adjustments
  • Support for enum mocking